problem with charset in WYSIWYG

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
fozzy
Posts: 11
Joined: Fri 26. Mar 2004, 03:47

problem with charset in WYSIWYG

Post by fozzy »

when i make EDIT ARTICLE, i see in WYSIWYG - "ïðèìèòå íàøè ïîçäðàâëåíèÿ!!!"
my defaul charset "windows - 1251", used russian lang...

PS sorry for lang. ))
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

And what do you expect to see?

Which of WYSIWYG-Editors are you using (you look it up in your conf.inc.php? (HTMLArea, FCKeditor)
fozzy
Posts: 11
Joined: Fri 26. Mar 2004, 03:47

Post by fozzy »

$phpwcms["wysiwyg_editor"] = 3; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based

i expect to see instead of "ïðèìèòå íàøè ïîçäðàâëåíèÿ!!!"

Image
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

You could try setting the charset-property in conf.inc.php to your "windows-1251". I don't know if this will have any effect...

Or perhaps change everything to UTF-8 - this should cover all "foreign" chars.
fozzy
Posts: 11
Joined: Fri 26. Mar 2004, 03:47

Post by fozzy »

no, its not work..((
can i set charset for editor only?
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

I don't know where this "browser based" editor is located, but if it is one of the editors included in phpwcms, search the folder "include/inc_ext" for configuration files. In these you should find language settings.

Or: try to use one other of the editors...
ionrock
Posts: 279
Joined: Fri 20. Feb 2004, 17:04

Post by ionrock »

Maybe try Unicode?

That is all I could think of, hope it might help.
fozzy
Posts: 11
Joined: Fri 26. Mar 2004, 03:47

Post by fozzy »

no... problem still open :(
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

Perhaps the editors just do not support russian chars, so that you will have to use the non-richtext-mode... :?
fozzy
Posts: 11
Joined: Fri 26. Mar 2004, 03:47

Post by fozzy »

can i put in phpwcms other editor?
ionrock
Posts: 279
Joined: Fri 20. Feb 2004, 17:04

Post by ionrock »

Yeah, check the include/inc_ext/ where all the editor code is and then check the include/inc_lib/ article files to see where they have a switch for the editor based on what is chosen so you can add it there whenever you have chosen one.
fozzy
Posts: 11
Joined: Fri 26. Mar 2004, 03:47

Post by fozzy »

i have no problem with charset iso-8859-1, but why they dont work with windows 1251???
fozzy
Posts: 11
Joined: Fri 26. Mar 2004, 03:47

Post by fozzy »

thanks!!! ;)
visionaire
Posts: 3
Joined: Tue 30. Mar 2004, 02:39
Location: tr
Contact:

Post by visionaire »

i have this problem in turkish language
i change the code in fckeditor.editor.inc

Code: Select all

$grstr = htmlentities( $this->Value ) ;
to

Code: Select all

$grstr = htmlspecialchars( $this->Value ) ;
and my problem is solved.
i hope this change dont cause another problem
any ideas ?
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

I think the specialchars is used to ensure that code is not passed via field entries that could be use to hack your site.
although i have not looked at the function you reffer to to see just how far this could compromise your site.
I also think that thier must be an accepted workable fix for this issue other wise most of the world would have to decide whether to have a site in their language OR to have it secure ;)
Locked