From kopete-devel Fri Jan 23 20:42:59 2004 From: Thiago Macieira Date: Fri, 23 Jan 2004 20:42:59 +0000 To: kopete-devel Subject: Re: [Kopete-devel] [Bug 72917] UTF8 and other cause XML parsing Message-Id: <200401231843.05126.thiago.macieira () kdemail ! net> X-MARC-Message: https://marc.info/?l=kopete-devel&m=107489060619840 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2005590115==" --===============2005590115== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_ZdYEAxrRnUBBHpi"; charset="utf-8" Content-Transfer-Encoding: 7bit --Boundary-02=_ZdYEAxrRnUBBHpi Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=20 always properly convert any 8-bit string into Unicode. The UTF-8 decoder, however, won't fail. There's a difference between=20 "can't" and "won't". It'll silently accept invalid UTF-8 sequences,=20 which it shouldn't. =2D-=20 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 --Boundary-02=_ZdYEAxrRnUBBHpi Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBAEYdZM/XwBW70U1gRApovAKC4u5PKWL8krbH8C7ZC3b9fRZtAWwCcCGu5 T1PLF83ap4bNcdTpYFh9pmE= =vAKt -----END PGP SIGNATURE----- --Boundary-02=_ZdYEAxrRnUBBHpi-- --===============2005590115== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kopete-devel mailing list Kopete-devel@kde.org https://mail.kde.org/mailman/listinfo/kopete-devel --===============2005590115==--