Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-Type: charset=utf-8'); //At start of page (or at least before any output)
- /*Assuming mysql/mysqli connect is set to $connect*/
- //MySql
- mysql_set_charset('UTF8',$connect);
- //MySqli
- mysqli_set_charset($connect,'utf8');
- ?>
- //Not needed, but always helpful (placed between <head></head> tags)
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement