Jump to content

Character encoding (yay)


esbenp

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.