|
From: | Laurent Destailleur (eldy) |
Subject: | Re: [Dolibarr-dev] json communication in dolibarr ajax calls |
Date: | Wed, 19 Feb 2014 03:19:34 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Note that strings in memory (when manipulated by PHP) should always be in UTF8, and this whatever is the database code page. Convertion is done silently by database driver. Check $dolibarr_main_db_character_set value. It is used by driver to know what is code page of database. For example, if your database codepage is latin, then when you get data doing $obj->myfield, value should be in utf8. If not, this probably means, there is a problem into your dolibarr conf file setup. But may be PHP need mb_string when database is not utf8 to do this work of converting on the fly data from database. I did like suggested by raphael, i added "mb_string" as a prerequisite. Le 17/02/2014 16:19, Doursenaud, Raphaël a écrit :
-- Eldy (Laurent Destailleur). EMail: address@hidden Web: http://www.destailleur.fr Dolibarr (Project leader): http://www.dolibarr.org To make a donation for Dolibarr project via Paypal: address@hidden AWStats (Author) : http://awstats.sourceforge.net To make a donation for AWStats project via Paypal: address@hidden AWBot (Author) : http://awbot.sourceforge.net CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net |
[Prev in Thread] | Current Thread | [Next in Thread] |