I am currently having an issue with storing Japanese characters.
The characters output to the front-end of the site, and the mySQL datbase correctly.
On the back-end... Once the FCK editor is updated, again, the Japanese characters are correct in the database and front end of the website, but the contents of the editor come out looking like this: ãŠã¯ã‚ˆã†
This means that I can update the content a single time, but need to keep pasting from another document in order to avoid losing work.
Can anyone provide a solution which will enable the FCK Editor to output the UTF-8 Unicode characters that are being stored in it?
My many thanks.
The characters output to the front-end of the site, and the mySQL datbase correctly.
On the back-end... Once the FCK editor is updated, again, the Japanese characters are correct in the database and front end of the website, but the contents of the editor come out looking like this: ãŠã¯ã‚ˆã†
This means that I can update the content a single time, but need to keep pasting from another document in order to avoid losing work.
Can anyone provide a solution which will enable the FCK Editor to output the UTF-8 Unicode characters that are being stored in it?
My many thanks.
Re: UTF-8 Output problem
Re: UTF-8 Output problem
Hi A.M. Thanks for the response.
You would imagine so, however... The page info pane says:
Type: text/html
Render Mode: Quirks mode <-- do you think a doctype could help here?
Encoding: UTF-8
In the meta data it says:
content-type: text-html; charset=utf-8
So, I'm still a little confused here.
Re: UTF-8 Output problem
Re: UTF-8 Output problem
Re: UTF-8 Output problem
Andre
Re: UTF-8 Output problem
The Column Collate is set to utf8_general_ci.
What's unusual is that the output is correct on the front end of the site. So I'm almost tempted to say it is an issue with the FCK editor config settings..
Still searching for a solution, any suggestions are welcome.
Re: UTF-8 Output problem
Disable FCKeditor on this page and just try to render HTML directly into a textarea. This will show you that it's a server-side problem.
Re: UTF-8 Output problem
An input field showed that FCK Editor isn't the problem. I will take my mySQL nightmares elsewhere thank you for helping me to diagnose this.
Re: UTF-8 Output problem
We set up the CMS with two versions of the content:
1. inside the FCK editor
2. inside an input box.
We found that removing the include containing the FCKEditor allowed the characters to be displayed correctly in the input box.
So we could only conclude that somewhere, the FCKEditor is changing the characters to Latin and not allowing them to be rendered as UTF-8 / unicode on the page that includes the FCK Editor.
Still desperately searching for a solution, if anyone has any similar experience your feedback is much appreciated.
Re: UTF-8 Output problem
You need to make sure data is not coming in mangled. Use a debugging proxy, like Charles (http://www.charlesproxy.com/) to see what exactly the browser receives. If it's well-formed UTF-8, then it's something in the browser. When working with the proxy, never mind the characters it displays - some of them fail to pick up fonts correctly. Look at the bytes instead.
Re: UTF-8 Output problem
Re: UTF-8 Output problem
Re: UTF-8 Output problem
FCKeditor, being a JS app, can't really cause this. It could only be the character set of one of the documents that host the editor. Capturing HTTP traffic with a debugging proxy will tell you if the characters are coming in properly-encoded (you should see UTF-8 characters in the capture). The next thing you can do is to install DOM Inspector in FireFox and point to the #document objects on the way from the editor (click on the finder tool at the top-left corner to find) to your hosting page. In the right-hand pane of the DOM Inspector, you will see a bunch of properties for each document. Find characterSet and make sure it's UTF-8.
Re: UTF-8 Output problem
All application is utf-8 encoded.
Saving is OK, since I can see the stored data being returned through a DB query.
When going back to fckeditor, text is replaced by a lot of rubish. I tried IE7 FF3/Chrome: same thing.
Have you found a fix for this?
UPDATE: I found how to fix this, change fckconfig.js
FCKConfig.ProcessNumericEntities = true ;
Re: UTF-8 Output problem
Re: UTF-8 Output problem
一 丁 丂 七 丄 丅 丆
you will be storing this in the database:
一 丁 丂 七 丄 丅 丆
Try searching for words or patterns in a database like this, not to mention 8 bytes per character that would take 3 if stored in UTF-8.
Re: UTF-8 Output problem
I have problem with installing FCK editor to my Russian website http://chans.in.ua
And everything is ok with my english website http://www.moneymakersportal.com
What's wrong with russian language?
Re: UTF-8 Output problem
Re: UTF-8 Output problem
Re: UTF-8 Output problem
Andre