1. unicode in text boxes
- Posted by Matt Arriola <vomitthesoul616 at yahoo.com> Nov 15, 2004
- 434 views
i'm working on a program right now that needs unicode, but all the unicode characters show up as multiple bytes. can win32lib use unicode?
2. Re: unicode in text boxes
- Posted by Derek Parnell <ddparnell at bigpond.com> Nov 15, 2004
- 456 views
Matt Arriola wrote: > > i'm working on a program right now that needs unicode, but all the unicode > characters > show up as multiple bytes. can win32lib use unicode? Win32lib doesn't support Unicode text. There is no reason why not, just that it hasn't been implemented yet. There is more to it than just using the Wide-Character versions of the API routines too, as all the implicit text comparision and storage stuff coded in Euphoria needs to be changed to handle Unicode. Fortunately, RDS's smart choice of a 4-byte character width means that Unicode utf-32 encoding is very simple. But, as Windows uses utf-16 encoding, there needs to be a bit of conversion work going on. There is a excellent Unicode library, developed by IBM, as an Open Source project, and implemented as some DLLs, that would be useful as a starting point. -- Derek Parnell Melbourne, Australia