From: N. R. <no...@co...> - 2004-10-24 22:50:42
|
Elias Pschernig wrote: >On Sun, 2004-10-24 at 16:05 -0400, N. Roy wrote: > > >> Any help with converting code like this to unicode where it can >>accept characters from any language (at least the ones currently >>supported by allegro) would be appreaciated. >> >> >> > >Well, basically, use ureadkey instead of readkey. Of course, this means >UTF strings instead of plain ASCII, so you also should look at the >section "Unicode routines" in the docs. When dealing with UTF8, it's >important that one character can take more than one byte. The string >will still be a number of non-0 characters followed by a 0 character, so >most things stay the same. But str[1] no longer will be the 2nd letter - >instead you should use the functions under "Unicode routines". > >The below is untested and probably will need some adjustements.. > > Thanks alot, this will help me get started anyhow. -- Neil Roy "No one has ever gone into heaven" - John 3:13 |