[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:       Martijn Klingens <klingens () kde ! org>
Date:       2004-01-23 18:59:24
Message-ID: 200401231959.24856.klingens () kde ! org
[Download RAW message or body]

On Friday 23 January 2004 19:48, Thiago Macieira wrote:
> IMO, the order of the codecs to be tried should be:
> - if the preferred codec is given, use it
> - if it isn't given, try to the user's locale codec. If that fails, try
>   UTF-8
> - if any other fail, decode as Latin1

How about the heuristics I just suggested, but instead of using Jason's code 
as final resort like I proposed use ...

> - finally, clean up U+0000 to U+001F (excepting, maybe, newlines, etc.)
> (note: no locale nor UTF-8 if preferred is given)

... this and ...

> Finally, instead of QChar('?'), I'd recommend QChar::replacement.

... this?

-- 
Martijn
_______________________________________________
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