[TYPO3-linux] UTF problems on AIX

Dimitri Tarassenko mitka at mitka.us
Thu Mar 9 20:05:19 CET 2006


Marius,

I'm cross-posting the details in TYPO3-Dev, subscribe to it (or look
up archives at netfielders) for the answers. Also, the best way would
be to file a bug at bugs.typo3.org, under TYPO3-core category - i
looked there but couldn't find anything similar.

Thanks!

D.

On 3/9/06, marius popa <mapopa at reea.net> wrote:
>  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  big endian for shure
>
>  gcc endian.c
>  $ ./a.out
>  big-endian
>  $ cat endian.c
>
>  int
>  main(int argc, char **argv)
>  {
>      union {
>        short  s;
>        char   c[sizeof(short)];
>      } un;
>
>      un.s = 0x0102;
>      if (sizeof(short) == 2) {
>          if (un.c[0] == 1 && un.c[1] == 2)
>              printf("big-endian\n");
>          else if (un.c[0] == 2 && un.c[1] == 1)
>              printf("little-endian\n");
>          else
>              printf("unknown\n");
>      } else
>          printf("sizeof(short) = %d\n", sizeof(short));
>
>      exit(0);
>  }
>
>  --
> 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