matthiasm wrote:
> On 22.12.2008, at 13:33, bibothekid wrote:
>
>> ok, this sounds strange, but
>>
>> can i disable the utf-8 behaviour in fltk 1.3 because i have trouble
>> with string reading from the database.
>
> No, you can not.
Right, it's kinda like wanting a way to turn off ASCII
in a unix terminal window ;)
If you're grabbing data from a database and getting back
garbled non-ascii, non-utf8 data characters, wouldn't you
want to first pick that stuff out of the strings before
passing it to fltk? Just loop through the strings, removing
any characters >0x7f.
If you are debugging, and want to see the raw data you're
getting back to check it, save the strings to a file and
look at them in a hex debugger (like 'cat yourfile | od -xc | more')
> But you can converts extended ASCII strings via a
> given codepage into uft8 and back. FLTK does not provide such a
> function ATM, but your OS surely have everything that is needed.
Right, on unix that would likely be iconv(3), which is
also available as a separate package for windows. Or maybe
windows has something similar in its own API.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk