Menu

#8 It can't deal with double byte content

v2.0
open
nobody
5
2005-06-21
2005-06-21
Stone
No

It can't process CJK(Chinese, Japan, Korea) characters,
and I believe it can't process other double byte
characters. It can't process some special characters,
such as '×', '…'. . I briefly browse the source code
and find that the token.getData return's string is in
fact a char. For double byte characters, it will
divided into two parts. and will display hex value.
For example, it can't process the attached simple rtf file.

Discussion

  • Stone

    Stone - 2005-06-21

    contains double byte characters and special characters

     
  • Jean-Christophe Helary

    Logged In: YES
    user_id=915082

    I get exactly the same result. I tried rtf2xml which had the same issue too.

    There is also the problem that the proper codepage does not seem to be
    set. It seems to me it would be more secure to set the xml encoding to utf-8
    and parse the rtf accordingly.

     
Auth0 Logo