[Xerte-dev] Re: Encoding issues

David Goodwin david at palepurple.co.uk
Mon Mar 11 10:30:50 GMT 2013


On 11 Mar 2013, at 10:23, Tom Reijnders <reijnders at tor.nl> wrote:

> I think we need to get the encoding of XOT fixed properly. It is not working at the moment.
> 
> I'll give you an example:
> - The create button in the list of templates, text of that button is in 'DISPLAY_CREATE' (from display_library.inc)
>  1.  At first it's generated through php in iso encoding  (all's fine here)
>  2.  After creating a new template the list is recreated through an ajax call (to website_code/php/templates/general_templates.php). As Ajax uses the default encoding of the webserver, it uses utf8, and I have to utf8_encode(DISPLAY_CREATE) to display it correctly.
> 
> In stead of utf8_encoding all appropriate strings in Ajax calls, wouldn't it be better to move to utf8? Or am I missing something completely.
> 

Yes.

Especially given PHP 5.4's default of utf-8 for the default charset - http://php.net/releases/5_4_0.php (which presumably would fix the issue you're seeing anyway?)


David. 

Pale Purple Ltd.  (Company No: 5580814)
'Web and Mobile Application Development for Business'

http://www.palepurple.co.uk   
Office: 0845 0046746     Mobile: 07792380669 

Follow us on Twitter: @PalePurpleLtd




More information about the Xerte-dev mailing list