Hi
I had some problems with translating FCKEditor into Danish, but then I looked at the documentation more time and saw that you had to save the lang. file in utf-8 format and not use utf-8 charaters in the lang. file.
I found this link that help me alot(how to encode your file into UTF-8 format):
http://www.w3.org/International/questio ... tions.html
Btw. if anybody is interested in the Danish lang. file you can email me at playr@playr.dk until fred is launching a new version with it in.
Sun, 11/23/2003 - 14:42
#1
RE: UTF-8 translate lang. in FCKEditor
The problem is with the Access-based app. 95% of the time, submitting fckedited text to the database is successful. In the other 5%, though, the database gets corrupted. I can usually restore the database, but the html text is lost.
Here is one scenario. A user opens up an existing doc (from the db) in the editor. The original source doc was from Word, and when prompted, the text was cleaned up. In edit mode, the user adds a couple of extra line breaks, some text formatting, and removes an extra bullet (li). On submit, the "search key cannot be found" error results, meaning that the row has been corrupted.
Before writing to the database, I both replace several known illegal characters, and then HTMLEncode the scrubbed content.
I never have this problem with the application running on SQL Server. I have a sense that it's a non-printing, binary character at fault. How can I determine what non-printing characters are passed by the editor for search/replace functions???
Any suggestions would be appreciated.
Paul
RE: UTF-8 translate lang. in FCKEditor
So any help would be appreciated,
Kind regards RObbie
RE: UTF-8 translate lang. in FCKEditor
It works fine for me in ColdFusion. I've been able to mix English, Russian, Arabic and traditional Chinese all in the same form field, and stored in and pulled out of a mySQL text field. Displays fine in a web site and in the editor.
One of the things I did was to search for all occurrences of "<html" in fckeditor's code. Then I added
<META http-equiv="Content-Type" content="text/html; charset=utf-8"> to the head area, if it was missing.
RE: UTF-8 translate lang. in FCKEditor
I verified that fckeditor.html was, in fact, set to "text/html; charset=utf-8" and it was. The only other HTML file in my app is fck_about.html - a help file, not a forms-based file. In the header of the ASP file, I also added:
Response.Charset = "utf-8"
Neither prevents the row from being corrupted on edit.
You say you are using ColdFusion and MySQL. I think, perhaps, this is actually a Microsoft encoding problem. My data is stored in Access. I also manage sites on SQL Server. I think Access does some special encoding to unicode/UTF character sets that causes the row to become corrupted on edit. (We have similar issues with a completely unrelated Access export to Oracle.)
Although I will eventually migrate my Access app to SQL Server (which works fine, btw), it would be nice to know if anyone has found a solution for Access.
Thanks,
Paul
RE: UTF-8 translate lang. in FCKEditor