daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Mar 18th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mysql_query('SET NAMES utf8');
  2.      
  3. header('Content-type: text/html; charset=utf-8');
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5.      
  6. echo nl2br(htmlentities(preg_replace("/[rn]+/", "nn", $row['someText'])));
  7.      
  8. mysql_query('SET NAMES utf8'); // Use utf-8
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top