On 2/19/12 5:07 PM, John Kearney wrote:
> Can somebody explain to me what u32tochar is trying to do?
> 
> It seems like dangerous code?
> 
> from the context i'm guessing it trying to make a hail mary pass at
> converting utf-32 to mb (not utf-8 mb)

Pretty much.  It's a big-endian representation of a 32-bit integer
as a character string.  It's what you get when you don't have iconv
or iconv fails and the locale isn't UTF-8.  It may not be useful,
but it's predictable.  If we have a locale the system doesn't know
about or can't translate, there's not a lot we can do.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to