Strange character issue

Permalink
Hi,

I have created my own theme. When imported into C5 all works fine, but i have some strange characters issue. I'm from Croatia, and some of the words use special Croatian characters, and they are presented with some strange glyphs, you know ?,! and those sort of signs when the text is rendered wrongly.

But when i paste or write text into content block, everything works fine, and my page displays correctly.
I read here on forum that maybe it can be some database colation problem, but i doubt it since tinyMCE produces good text.

Any ideas?

Mirko

Madebym
 
JohntheFish replied on at Permalink Reply
JohntheFish
Madebym replied on at Permalink Reply
Madebym
Will try that link, but what confuses me is that when writing text into tinyMCE editor, the text that it produces is fine, so it means that my settings are able to display Croatian special characters.
Madebym replied on at Permalink Reply
Madebym
No luck, everything is set as said in the provided link; utf8_general_ci
Madebym replied on at Permalink Best Answer Reply
Madebym
To answer my own question, maybe it will be helpfull to someone.
I normally do all of my work in Aptana Studio, but since Notepad++ is lighter, i tend prior to importimg my theme into CMS to copy-paste all files into Notepad++ and do small adjustments there, before completing my theme.

In Notepad++ all Croatian letters were normally displayed, but it turns out that when saving the file, Notepad++ turns Croatian special characters into strange glyphs.

So for anyone working in Notepad++, be aware that it can turn your characters into glyphs, despite them displaying ok in the editor.
nitro replied on at Permalink Reply
nitro
Mirko,

Thank you very much on this post.
I spent hours and hours of reading and it turned that the problem was with Notepad++.
Anyway, you can still use it with Croatian and (Macedonian) cyrillic letters, but you have to activate the option:
Encode in UTF-8 without BOM
under Encoding menu.

I also used JordanLev Custom Contact form, and have a problem with options in cyrillic letters, when you enter them on the form everything is OK, and they are properly saved in the DB, but they are displayed as garbage :-( Probably I'll have to study its' controller.php.

Best regards
Zoran
MysteriousCleon replied on at Permalink Reply
MysteriousCleon
"you have to activate the option:
Encode in UTF-8 without BOM"

I also had some encodng issues (but in polish language) - and very helpful option in notepad++ is "convert to UTF-8 without BOM".
Just in case.. :)

Best,
Emil