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

List:       kde-pim
Subject:    Re: [Kde-pim] Re: What type of encoding to use for text stored in files?
From:       Cornelius Schumacher <schumacher () kde ! org>
Date:       2002-06-27 8:15:54
[Download RAW message or body]

On Thursday 27 June 2002 01:31, David Jarvie wrote:
> On Wednesday 26 Jun 2002 10:56 pm, David Faure wrote:
> > On Wednesday 26 June 2002 23:27, David Jarvie wrote:
> > > I notice that in kdepim/libkcal, various strings such as event
> > > description, summary, attendee, location are converted using
> > > QString::local8Bit() before being stored in the calendar file. However,
> > > this means for example that if someone using a Western European locale
> > > enters a description in Cyrillic, it is stored incorrectly. Using
> > > QString::utf8() causes the string to be stored correctly so that it can
> > > be retrieved and displayed as a Cyrillic string again.
> > >
> > > When should local8Bit() be used, and when should utf8() be used for
> > > storing strings in files?
> >
> > Use local8Bit if other, non-kde, from old times, tools need to read the
> > files. Use utf8 if all tools that will have to read this file support
> > utf8 (it's a much nicer solution indeed, for the reasons you mention).
> >
> > Even text console tools seem to handle utf8 now (e.g. vi), so if this is
> > about a new file format, I would strongly advise to choose utf8.
>
> Would it be acceptable to convert libkcal to use utf8 for icalendar or
> vcalendar formats? Or are we restricted by the need for compatibility and
> thus need to stick to local8Bit?

We should use utf8, but it would be nice if libkcal would still correctly read 
older calendar files. They can easily be converted by a call to "recode", but 
maybe it's better to do that automatically. I don't know, if this is worth 
the hassle.

-- 
Cornelius Schumacher <schumacher.kde.org>

_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

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