[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    Re: [Kopete-devel] [Bug 72917] UTF8 and other cause XML parsing
From:       Thiago Macieira <thiago.macieira () kdemail ! net>
Date:       2004-01-23 20:42:59
Message-ID: 200401231843.05126.thiago.macieira () kdemail ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Martijn Klingens wrote:
>On Friday 23 January 2004 20:38, Thiago Macieira wrote:
>> Latin 1 decoding can't fail, so this will never be reached.
>
>Hmm, I stated before that AFAIK it *could* fail. If both latin AND utf
> cannot fail that would be both weird and annoying. Or is there also
> an isLatin1() method in KStringHandler?

It can't fail because anything is valid Latin-1 text. Therefore, it can 
always properly convert any 8-bit string into Unicode.

The UTF-8 decoder, however, won't fail. There's a difference between 
"can't" and "won't". It'll silently accept invalid UTF-8 sequences, 
which it shouldn't.

-- 
  Thiago Macieira  -  Registered Linux user #65028
   thiagom (AT) mail (dot) com
    ICQ UIN: 1967141   PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

[Attachment #5 (application/pgp-signature)]

_______________________________________________
Kopete-devel mailing list
Kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic