Re: dealing with Unicode strings on MS-Windows?
Reini Urban <[email protected]> Tue, 26 Mar 2002 20:19:16 +0000
| Newsgroups | gmane.lisp.uffi.general |
|---|---|
| Organization | http://www.x-ray.at |
| Message-ID | <[email protected]> |
"Hoehle, Joerg-Cyril" schrieb: > does anybody know how MS-Windows works with Unicode strings? What encoding do they use? > UTF-8? UTF-16? xy? UTF-16 probably. see below. > Do they consistently use 16bit (C type "short") for one character? yes. the winapi provides A (Ascii) and W (wide) pairs for all functions dealing with strings. the "W" suffix version takes 16-bit chars, "A" 8-bit chars. > Who has got some experience with Unicode and Common Lisp? how much headache is it > to deal with unicode, ASCII, xyz all in one? Corman just strips the first 8-bits of each char for COM support (16-bit widechars), so foreign chars > 65536 (mainly japanese) will be mapped to some ascii char. ACL and LW probably do it right. > If it matters, I'd be more interested in how MS-Windows NT or 2000 operate. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/