Re: OFF-TOPIC: Converting latin-1 to unicode

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");

This should of course be iconv_open.

Robert Brady
robert suse co uk

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]