Hi,
I'm new to Drupal. I installed 4.7 RC 1 on MySQL with PHP5. I tried to enter a very simple content with the full HTML option (I do not even consider another option - for me, this is full HTML or nothing).
Here is the address blog.empyree.org/drupal/
The text is the following:
Ceci est la page d?accueil. C?est un test, on verra ce que ça donne.
And it should be the following:
Ceci est la page d’accueil. C?est un test, on verra ce que ça donne.
Err, actually, even this very site doesn't display the correct character. Well, it is supposed to be a typographic apostrophe (right single quotation mark).
Since all the pages are UTF-8, I guess the problem comes from the editor. Any idea how to fix it?
Comments
Several ways to get UTF8 right (and many to get it wrong)
David,
I used to be in the International Client group at Netscape, back in the day. There are a couple answers to your question.
There are several steps that your text goes through before you see it in the blog's browser page:
That's a little long, but that's how it works. And it does work pretty well most of the time.
Rob Thorne
Torenware Networks
http://www.torenware.com
Rob Thorne
Torenware Networks
phpMyAdmin
Most likely you used phpMyAdmin to set up your database. There is a known issue with phpMyAdmin removing the character set definitions from the .mysql file. As a work around, you can remove the comment markers
/*!40100and*/from that file before you upload it to phpMyAdmin.--
If you have a problem, please search before posting a question.
Done things right
Hello to both of you,
All these information are not for parading, just so that you know that human or browser problems had been reduced to the minimum.
Now for the interesting part:
So, it seems the problem comes from saving. Not only from saving but from saving on Drupal. I'm using 4.7 RC 1 with no mod at all. Plus, the database is shared with other CMS like WordPress and ExpressionEngine, which do not have any problem regarding the encoding. Finally, when I installed Drupal, I had to open the text editor and copy and paste the content of database.mysql, since my version of PHPMyAdmin does not have this function for calling an external file. I selected all and pasted in the "SQL" tab. So the bug told by Steven should not have occured with me…
Oh, I forgot: I'm using MySQL 4.1 and PHP5. Could it make a difference?
I'm quite lost on this thing…
Hey
About the databse and utf8, read this:
http://www.phpn.org/item/16586_PHP_MySQL_4_1_and_UTF_8.html
A hint how to improve the situation.
Im in this mess also now. I made a backup with CP, and if i restore it, then the unusual characters are all messed up... I dont remember the old database setting so... things are crappy...
A small update
Hello,
Since I posted here, I deleted Drupal and very recently reinstalled it, in version 5.1. So far, no more encoding problem. Problem fixed!
subscribe
subscribe