Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mysql_query('SET NAMES utf8');
- header('Content-type: text/html; charset=utf-8');
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- echo nl2br(htmlentities(preg_replace("/[rn]+/", "nn", $row['someText'])));
- mysql_query('SET NAMES utf8'); // Use utf-8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement