[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: iconv limitations
AFAICS it expects the length of the input in bytes, so you simply
pass strlen() for zero-terminated strings.
behdad
On Wed, 7 Apr 2004, Michael B Allen wrote:
> AFAICT iconv(3) requires that the length of the input be known in advance.
> This is very unfortunate for zero terminated strings as it requires the
> user inspect the string in an encoding specific way to determine it's
> length. Is there simply no way around this?
>
> Mike
--behdad
behdad.org
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/