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

Re: char * to unicode/UTF string



> James Simmons wrote on 2004-05-18 23:46 UTC:
> > I wish that where true. I was using regualer char strings in JNI code for 
> > a JVM and it expects unicode strings. The JVM was braffing because of 
> > this.
> 
> "Unicode string" is not a meaningful description of how text is encoded
> as a sequence of bytes. I presume you mean something like UTF-16LE or
> UTF-16BE?
> 
> Quick introduction to what Unicode encodings there are:
> 
>   http://www.cl.cam.ac.uk/~mgk25/unicode.html#ucsutf


I just discovered what my problem was. The data I was getting was already 
a unicode string. I was assuming it was UTF16. The question is now how 
does one get the unicode string length?



--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/