chrismunden / cmsfromscratch

Automatically exported from code.google.com/p/cmsfromscratch
0 stars 0 forks source link

HTML and foreign languages (like Slovak) #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, i'm using CMS from scratch but if i want to create new html in cms and
the text i write is in slovak (using chars like: ľ,š,č,ť,ž,ý,á,í,..), 
after
reopening the file, chars are changed into this: 
Å¾Ä¾Å¾Ä¾ÄÅ¾Ä¾ÄÅ¾Ä¾ÄÅ¾.

I tried to change settings of FCKEditor to not translate chars into their
entities and use latin chars, but it seems like it ignores it. Can you help
me please?

Thanks,

mattonik (mattoniK@gmail.com)

Original issue reported on code.google.com by matto...@gmail.com on 19 Mar 2008 at 11:12

GoogleCodeExporter commented 8 years ago
Ahoj Mattonik. I appreciate the issue here. Some significant work is needed to
identify where the problem is (i.e. within FCKEditor, or when saving the files, 
or
re-opening).

FCK Editor will support a range of languages, and it may be hard-coded to 
English for
now.

I can't say whether/when I'll be able to investigate this, but a fix from the
community would be very welcome!

Original comment by designfr...@gmail.com on 6 Jun 2008 at 9:34

GoogleCodeExporter commented 8 years ago
Hi, thanks for reply.
In my opinion, problem is not in FCK Editor as I made a lot of changes to it and
nothing helped and it isn't usual. Therefore i think problem is in text saving 
code,
but may be wrong.

Original comment by matto...@gmail.com on 6 Jun 2008 at 10:34

GoogleCodeExporter commented 8 years ago
I had the same problem with russian text. Seems to be fixed by specifying 
charset in
cms\edit-html.php file

On line 31 right after <head> insert following line
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

Original comment by baexp...@gmail.com on 6 Jan 2009 at 3:14

GoogleCodeExporter commented 8 years ago
A member on our Forum
(http://scratchwebdesignforums.com/forums/index.php?s=&showtopic=45&view=findpos
t&p=1119)
posted this additional fix:

Edit /cms/general.php

Add to line 2, right after "<?PHP"
 mb_internal_encoding("utf-8"); 

Original comment by ben.hunt...@gmail.com on 6 Jan 2009 at 10:03

GoogleCodeExporter commented 8 years ago
Hello,
thanks for the fixes, i give it a try as soon as possible.

Original comment by matto...@gmail.com on 6 Jan 2009 at 10:31

GoogleCodeExporter commented 8 years ago
mattonik,

Also comment out line 79 in general.php 
$fileContents = convertSmartQuotes($fileContents) ;

I guess it finds smart quotes inside of multibyte characters.

Original comment by baexp...@gmail.com on 6 Jan 2009 at 2:51

GoogleCodeExporter commented 8 years ago
i have same the problem too :(. I also need proper functionality with Slovak 
text.
Have you already some good result? If so, could you please give me right 
solution.. I
dont know what to do...

Original comment by milan.do...@gmail.com on 7 Dec 2009 at 10:53