So... the question is... Do we support non-utf8 databases? Regards,
*Marcos García* marcos...@gmail.com 2014-02-01 13:20 GMT+01:00 Christophe Battarel < christophe.batta...@altairis.fr>: > if a dolibarr instance works with a non utf8 database for instance, you > should then encode strings (via the utf8_encode php function) before > encoding them to json; otherwise json encoding doesn't return valid json > string and ajax call fails. > > Le 01/02/2014 12:57, Marcos García a écrit : > > Where did you find that Dolibarr does not use UTF-8? > > Regards, > > > *Marcos García* > > marcos...@gmail.com > > > > 2014-01-30 Christophe Battarel <christophe.batta...@altairis.fr>: > >> 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)contact@altairis.frhttp://www.altairis.fr >> >> >> _______________________________________________ >> Dolibarr-dev mailing list >> Dolibarr-dev@nongnu.org >> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev >> >> > > > _______________________________________________ > Dolibarr-dev mailing > listDolibarr-dev@nongnu.orghttps://lists.nongnu.org/mailman/listinfo/dolibarr-dev > > > > -- > Christophe Battarel > Responsable technique > sarl altairis > Informatique et Web en Grésivaudan > 33 Grande Rue > 38570 Goncelin > 09 52 71 70 96 (appel local)contact@altairis.frhttp://www.altairis.fr > > > _______________________________________________ > Dolibarr-dev mailing list > Dolibarr-dev@nongnu.org > https://lists.nongnu.org/mailman/listinfo/dolibarr-dev > >
_______________________________________________ Dolibarr-dev mailing list Dolibarr-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/dolibarr-dev