Re: OFF-TOPIC: Converting latin-1 to unicode
- From: Gustavo Joćo Alves Marques Carneiro <ee96090 fe up pt>
- To: Robert Brady <robert susu org uk>
- Cc: gnome-devel-list gnome org
- Subject: Re: OFF-TOPIC: Converting latin-1 to unicode
- Date: Mon, 13 Nov 2000 19:17:20 +0000 (WET)
On Mon, 13 Nov 2000, Robert Brady wrote:
> On Mon, 13 Nov 2000, [ISO-8859-1] Gustavo Joćo Alves Marques Carneiro wrote:
>
> > I need to convert a string in whatever encoding used by the system (I
> > use latin-1) to unicode. I need it to render strings with freetype -- the
> > font I'm using uses unicode encoding.
> >
> > I looked at iconv, but it seems to convert only between different
> > multibyte encodings. I also looked at libunicode, but couldn't find the
> > function I need.
>
> iconv("UTF-8", "ISO-8859-1"); ?
> iconv("UCS-2", "ISO-8859-1");
>
> see iconv --list at the shell for a list of encodings supported.
Thanks for the reply.
There must be something wrong with my libc. iconv --list at my linux
machine (mdk-6.1) doesn't show iso-8859-1. But I try the same at my
university (Debian 2.2) and it shows a huge list, including
iso-8859-1. Maybe I'll try compiling glibc..
Anyway, one problem remains: how do I get the encoding used by the
system? I imagine not all users of my application use latin-1 encoding.
>
>
--
Gustavo J.A.M. Carneiro
[linuxdeec.fe.up.pt/~ee96090]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]