Hi,
i want to create a site in polish and for my sites I am now using the FCK Editor. Everything is fine with it, unless you try to make a site that is not in a western language style.
If I fill in the polish text with its special characters then the FCK Editor makes something very different out of it. If I use an absolute normal input-field, then the polish text is displayed as wanted.
In order to let you better understand this problem, please go to
http://www.emsas.de/traumprojekt/pl/default.asp
You will see two fields a normal one and the fck-one. If you copy the polish text from the field above or from the word-Document, then paste it in the fck-field and save it (Click on Speichern) then there will be displayed something total different.
What have I done to solve this problem so far?
In the default.asp-Site I included the right charset for the Polish language:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
In the FCK-Editor I made the following changes:
fcconfig.js:
FCKConfig.AutoDetectLanguage = true ;
FCKConfig.DefaultLanguage = 'pl' ; || that was: 'en'
FCKConfig.ContentLangDirection = 'ltr' ;
Editor/Filemanger/Browser/Default/connector.asp:
' Set the response format.
Response.CharSet = "iso-8859-2" || that was: "UTF-8"
Response.ContentType = "text/xml"
But it didnt work.
So, does anyone of you knows how to solve this problem?
Thanks
Jasper
Mon, 10/17/2005 - 23:47
#1
RE: Problems with eastern European languages
I use swedish as language but words inside my cms admin and on the webpage i create gets errors of some swedish characters. ()
It seems like its all runned through javascript wich it isnt.
Im searching a way to solve this because i cant use this editor if i dont solve this issue.
And we know for sure that its the FCK editor that causes this language problem, help is wanted!
RE: Problems with eastern European languages
If i press source button i see
äàñäàñä
RE: Problems with eastern European languages
OK guys, there is the solution.
I'm hungarian, so I had a same problem with our special characters. There is two way to solve this bug:
1. check this file: FCKeditor\editor\_source\internals\fckxhtmlentities.js
I think you can understand the problem now. Just simple erase that lines where are your special characters.
Then don't forget to recompress the js files, or rename the FCKeditor\editor\fckeditor.original.html to FCKeditor\editor\fckeditor.html for use the _sources dir.
2. Do the same procedure, but on the compressed .js files (I did it this). You can found the same lines in the FCKeditor\editor\js\fckeditorcode_ie_1.js and FCKeditor\editor\js\fckeditorcode_gecko_1.js .
Anyway I did one more step, but it is not necessary. I use the iso-8859-2 code on me site. So I find and replace all utf-8 setting on the whole fckeditor dir.
Have fun,
Bunny
webmaster of http://www.bunny.hu and http://www.divecenter.hu