[TYPO3-linux] t3lib_ts:UnumberToChar(), was: UTF problems on AIX

Dimitri Tarassenko mitka at mitka.us
Thu Mar 9 20:02:36 CET 2006


Hello All,

Who is currently working on t3lib_ts (charset conversions)? I am
copying Martin Kutschker on this but maybe someone has any experience
with the problem as well.

This is a forward from TYPO3-Linux - Marius is running AIX on rs/6000,
which is big-endian 64-bit. Apparently, there are some problems in
Unicode number to UTF conversion that is done via byte-shifting, and
UnumberToChar() goes in an undefinite loop.

Anyone seen this before / knows how to fix?

Thanks!

D.

---------- Forwarded message ----------
From: marius popa <mapopa at reea.net>
Date: Mar 9, 2006 10:49 AM
Subject: Re: [TYPO3-linux] UTF problems on AIX
To: TYPO3 Installation on Linux and other Unices
<typo3-linux at lists.netfielders.de>


 Dimitri Tarassenko wrote:
 Marius,

On 3/9/06, marius popa <mapopa at reea.net> wrote:


 we run typo3 on an aix server with php compiled as cgi bin interpreter

 if ($title && $title != $upper) $utf8CaseFolding['toTitle'][$utf8_char]
= $this->UnumberToChar(hexdec($title));

 This function (UnumberToChar) converts UNICODE numbers to UTF-8
multibyte characters. The way it is coded is by bitwise shift.

Since you mention you run AIX, I would suspect there might be a
problem with byte-order while converting to/from Unicode.

Is youre server big-endian or little-endian?

 it's an rs/6000 big endian
 seems that you spotted the problem :)

 http://www-306.ibm.com/software/globalization/decodingunicode/formats.jsp


 --
Regards,
Linux admin team


_______________________________________________
TYPO3-linux mailing list
TYPO3-linux at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-linux



--
Dimitri Tarassenko


More information about the TYPO3-linux mailing list