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

List:       kde-devel
Subject:    Re: Unicode - codepages - ???
From:       Lars Knoll <Lars.Knoll () mpi-hd ! mpg ! de>
Date:       1999-08-20 18:26:01
[Download RAW message or body]

On Fri, 20 Aug 1999, Harri Porten wrote:

> Werner Trobin wrote:
> > 
> > Hi!
> > 
> > I'm reading text out of WinWord files. These characters are either
> > stored as Unicode glyphs or as compressed Unicode characters (my
> > documenation says Ms Word uses codepage 1252 for that).
> > I want to read those characters (and if they are compressed covert
> > them to Unicode).
> > 
> > My questions are: May I use Qt to convert the codepage 1252 chars to
> > "normal" two byte Unicode chars? What do I have to do? Where do I
> > get this codepage from? Is it available on every supported platform
> > in every country, or do I have to write my own "mapper" (from
> > codepage 1252 to Unicode)?
> 
> I don't know anything but codepage 1252 but Qt _can_ be used to do the
> conversion. At least I got that impression when looking at the
> QTextCodec. I saw stuff like UTF-8 in the sources.

QTextCodecs are the way to go. But AFAIK, Qt doesn't have a codec for
CP1252 up to now. You could perhaps make one (it's quite simple, have a
look at the defined codecs in $QTDIR/src/tools), add it to your filter or
even submit it to the trolls for inclusion in their next release.

Bye,
Lars

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

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