On Tue, Aug 20, 2002 at 06:18:29PM +0200, Asger Kunuk Alstrup Nielsen wrote:

> This will work for ISO-8859-1, and this will get you started.

sure I already do this via .ascii()

> If you want to do the real thing with support for ISO-8859-2 and other
> encodings, then do like this:
> 
>   char getISOEncoded(int c) {
>     if (c < 0x100) {
>       // ISO-8859-1
>       return c & 0xff; // This converts Unicode characters to ISO-8859-1
>     }
>     if (c is in ISO-8859-2) {
>       return convert_unicode_to_iso8859_2(c);
>     }
>     if (c is in ISO-8859-3) {
>       return convert_unicode_to_iso8859_3(c);
>     }
>     ..etc..
> 
>     if (c is X-encoding, where X is an 8-bit encoding) {
>       return convert_unicode_to_X_encoding(c);
>     }
>   }

I don't understand (sorry :) - what encoding must "c" be in here ? I can
get utf8 from Qt. So I have to write stuff from utf8->the right
encoding. Is that OK ?

> I do not believe X provides much help for this, except for maybe
> the "convert_unicode_to_X" functions in modern X-versions.

Qt cannot use X

regards
john

-- 
"Way back at the beginning of time around 1970 the first man page was
 handed down from on high. Every one since is an edited copy."
        - John Hasler <[EMAIL PROTECTED]>

Reply via email to