[TYPO3-ect] xaJax - Further development
Elmar HInz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Thu Jan 11 20:41:46 CET 2007
Am Thu, 11 Jan 2007 19:19:26 +0100 schrieb Franz Holzinger:
> Hello Elmar,
>
>>
>> I am not I I.E. user myself, but my xajax installations seem to work, else
>> I would get complaints by the customers. I encountered similar problems
>> with I.E. during my first steps with xajax, when I didn't use UTF-8 as
>> transport encoding. Imho UTF-8 transport is the default now without
>> further configurations.
>>
>
> but the site is encoded in "charset=iso-8859-1". So I need a solution
> which would work with this charset.
>
> - Franz
I think there are at least two alternative easy ways to go in that case:
1.) Convert iso-8859-1 to ascii by htmlentities() before sending:
http://www.php.net/manual/en/function.htmlentities.php
2.) set XAJAX_DEFAULT_CHAR_ENCODING to iso-8859-1 befor you instantiate
xajax as the documentation suggests:
http://wiki.xajaxproject.org/Documentation:xajaxResponse.inc.php#xajaxResponse_.28string_.24sEncoding.3DXAJAX_DEFAULT_CHAR_ENCODING.2C_bool_.24bOutputEntities.29
http://wiki.xajaxproject.org/Documentation:xajax.inc.php#Global_Constants
If you want to avoid the constant in case 2.), you have to set the
encoding for the request and the response object separately.
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list