esbenp Posted October 20, 2010 Share Posted October 20, 2010 Hey, i'm am trying to change a project into UTf8 encoding, since i always have trouble with iso-8859-1. So far i've changed all my tables in the database to utf8_unicode_ci, and i've changed my meta tag to <meta http-equiv="content-type" content="text/html;charset=utf-8" /> I'm also using the SET NAMES utf8 command, right after making my db connection. Then i've opened all the files one by one in notebook and saved it as utf8 instead for ansi. I have then checked all the files, one by one, by opening them in the browser (chrome), and it said they all were utf8 (by using the find automatic encoding func). I'm using Netbeans and i've set my project encoding to utf8 aswell... When i opened the files in notepad and saved them again as utf8 they all got a small char (´ (i think)) at the very beginning at the file, which fucked up my sessions (headers already sent bla bla), and it is only visible in netbeans (cant see it in notepad nor chrome when i view source). So i've removed the char and saved the file and BAM, back to ISO-8859-1 for some fucked up reason i really hope someone knows Any suggestions!? Link to comment https://forums.phpfreaks.com/topic/216427-character-encoding-yay/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.