Login   Register  
PHP Classes
elePHPant
Icontem

Which character encoding is assumed? I am having trouble maki...

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Cyrillic to Latin  >  All threads  >  Which character encoding is assumed? I am having trouble maki...  >  (Un) Subscribe thread alerts  
Subject:Which character encoding is assumed? I am having trouble maki...
Summary:Package rating comment
Messages:3
Author:Judith Meyer
Date:2007-12-01 22:05:57
Update:2007-12-02 09:42:17
 

Judith Meyer rated this package as follows:

Utility: Not sure
Consistency: Good
Documentation: Good
Examples: Good

  1. Which character encoding is assumed? I am having trouble maki...   Reply   Report abuse  
Picture of Judith Meyer
Judith Meyer
2007-12-01 22:05:57
Which character encoding is assumed? I am having trouble making this work for a Unicode site. (without all the Ajax)

  2. Re: Which character encoding is assumed? I am having trouble mak   Reply   Report abuse  
Picture of Yaroslav Shapoval
Yaroslav Shapoval
2007-12-01 22:47:42 - In reply to message 1 from Judith Meyer
Oh! If my memorie does not tricking me, the encoding was windows-1251.
Converting the incoming string from UTF-8 to windows-1251 will help you.
Need help - write to yaroslav*dot*shapoval**at**gmail*dot*com

  3. Re: Which character encoding is assumed? I am having trouble mak   Reply   Report abuse  
Picture of Judith Meyer
Judith Meyer
2007-12-02 09:42:29 - In reply to message 2 from Yaroslav Shapoval
Thanks. I experimented and KOI-7 worked for me. However, since my system locale isn't Russian or anything, I had to replace strtolower with mb_strtolower in the class, otherwise the output was all capital letters. Maybe you can make that change to the class itself, because I believe mb_strtolower works for all systems and encodings, independent of locale.