Re: [xml] [Re:]newbie question about encoding

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Oct 23 2000 - 12:04:36 EDT


On Mon, Oct 23, 2000 at 01:31:09PM +0000, Ext.ZXSPRCR2A015@tls.mms.fr wrote:
>
> >You can use isolat1ToUTF8() for this (it's public
> >in the encoding.c module but it seems I forgot to add it to the
> >encoding.h module, will do).
>
> I don't understand what are inlen and outlen parameters.
>
> If I set *inlen = *outlen = sizeof(in) = 7 the conversion
> only covers the beginig of string?
>
> So I set *inlen = sizeof(in) + 6 and the whole word is
> converted, but why?

  Because an UTF8 char can use 5 bytes

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | libxml Gnome XML toolkit
Tel : +33 476 615 257  | 655, avenue de l'Europe | http://xmlsoft.org/
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Rpmfind search site
 http://www.w3.org/People/all#veillard%40w3.org  | http://rpmfind.net/
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 12:44:00 EDT