dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-dev] json communication in dolibarr ajax calls


From: Christophe Battarel
Subject: [Dolibarr-dev] json communication in dolibarr ajax calls
Date: Thu, 30 Jan 2014 10:47:42 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Hello everybody,

I've just had a problem with ajax product search that wasn't working for certain products on document "add line" feature.
After insvestigating, it was "because" mb_string was not active on the server. mbstring is used by the dol_trunc function to take care of the character encoding when truncating strings.

In second thought, i checked deeply our code and realized that there was no utf8 encoding for json strings though it is mandatory ("All string data must be UTF-8 encoded." source: http://us3.php.net/manual/fr/function.json-encode.php)

I prefer first posting a message here to have confirmation of my assertions; then if i'm right, it would be nice to fix it, but i don't realize the amount of work yet.

Best regards
Christophe
-- 
Christophe Battarel
Responsable technique
sarl altairis
Informatique et Web en Grésivaudan
33 Grande Rue
38570 Goncelin
09 52 71 70 96 (appel local)
address@hidden
http://www.altairis.fr 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]