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

List:       kopete-devel
Subject:    [Kopete-devel] [Bug 72917] UTF8 and other cause XML parsing errors,
From:       Martijn Klingens <klingens () kde ! org>
Date:       2004-01-23 20:20:32
Message-ID: 20040123202032.1048.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=72917      




------- Additional Comments From klingens@kde.org  2004-01-23 21:20 -------
Subject: Re: [Kopete-devel]  UTF8 and other cause XML parsing errors, only in IRC conversations

On Friday 23 January 2004 21:09, Jason Keirstead wrote:
> I don't really see this as much of a problem. If the default codec for all
> contacts is Latin1, then the user has to manually change to UTF-8. If they
> manually do this I don't have a problem with it mis-detecting and failing
> with an error / warning; they are the ones who chose that.

Heh, you have a different goal than I have here :)

I want first and foremost to have accurate and autodetected conversion. 
Second, I want it to be failsafe regardless of a user's setting.

The user's setting should be TRIED first, but not FORCED. If it is broken utf8 
we know it will break the parser, it makes no sense to obey the user at all.

Arguably latin and utf could be switched, but whatever we do we should

- make sure that whenever Utf8 is being used isUtf8() is called first and if
  it fails forget about using Utf8

- try Utf8 somewhere along the lines.

I agree that the user's coded should be tried first, like I already said in 
the previous mail. But, again, tried != forced.

See also Thiago's mails to the list BTW. I suggest to continue in that thread, 
because we're now talking in two branches.

> Other than the local8bit() fallback (which is also useless... what does my
> local codec have to do with the sender's? There's really no correlation,
> it'd just be random luck to work),

Not really. Generally contact lists tend to consist of people from mostly the 
same country. In western countries it is a bit useless, also because the by 
far the most used Utf and Latin1 are both tried anyway, so the local is a 
duplicate, but especially in the Russian and Greek countries the local 
encoding is a VERY important one to try.
_______________________________________________
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