Jump to content

French Characters work selectively with charsets


Recommended Posts

I have a French/English bilingual site that I am working on.

 

The main site is at http://www.xtown.ca/index1.php. Check out the News page for example. in the 4th Paragraph, there are a bunch of French names. For both the French and English section, the names were copy-pasted so they are all identical characters. They are all stored in a PHP variable and called in.

 

The English part does NOT show the french characters properly, but replaces them with question marks when it's in UTF-8 encoding. But ocne you click the French button at the top and open the same page in French, with the same special accentuated e's and all that, it works fine. So i tried ISO- whatever that is the standard, and then it became the VICE VERSA. The English part worked fine but the French part started breaking on the special text. What the hell is going on? They're the same text. Shouldn't they all work or not work in the same encoding environment???

 

 

 

Your http header shows that the charset is utf-8, but when you view the page source it shows ISO-8859-1. Your php is set for a default charset, which can be changed or deleted in your php.ini file. If you don't do this you have a character encoding mismatch error. Once you know you are outputting only one declaration of charset, then use the one that is right for your chars.

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.