[Vtigercrm-developers] vTiger 5.2.0 RC2 + chat + russian symbols = bad behaviour
Alexander Makarenko
estliberitas at gmail.com
Mon Sep 13 12:38:28 PDT 2010
I didn't know where to post this, so I decided to write here about my
small experience in "patching" vTiger to support russian symbols in
internal chat.
So, here the URL of little article:
http://blog.liberitas.info/2010/09/13/vtigercrm-chat-htmlentities-problem/lang/en/
And it's contents:
Internal chat on Russian is da problem, nigga. I was surprised when I
saw it. I got the complaint from one of our clients. My surprise was
due to the fact that all data had been transmitting using UTF-8.
Looking into JS-code, I saw that everything works off perfectly,
queries to the server are fine, no “traditional Chinese cuneiform”. I
looked into the file modules/Home/chat.php. I found functionsubmit.
And there were these lines:
//UTF-8 support added - ding
$msg = utf8RawUrlDecode($msg);
$msg = $this->msgParse($msg);
$msg = htmlentities($msg);
Immediately sinned on these three lines – they are handling the
interesting for us $msg variable (it is the message). Playing a little
and reading the documentation, I found that internal
functionhtmlentities behaves strangely sometime. And, really – she was
behaving bad. Commented out – everything works goode. I can not say
what’s the reason, but apparently this function works off badly on
UTF-8-strings.
--
Sincerely,
Alexander Makarenko
More information about the vtigercrm-developers
mailing list