> I store strings in std::string and just send that to FLTK > (via .c_str()). > > How to use this application on windows 98?
It's a very long time since I saw a box running win98, but I don't think it supports UTF-8 natively. I think there might have been an add-on pack for it that did, however, so that might be worth seeking out. But I'm afraid the details escape me now... > All the characters will fit into popular "windows CP-1250" code page. If UTF-8 is supported, then you don't need the code page at all, of course, but as noted above I don't think that win98 does... > Will my code Just Work (probably not)? 'fraid so, probably not... Worth a try though, it might! > If not, then how to tell it to use CP-1250 (CP-1250) will > also be anyway the > default on the target system. > And do I need to convert my std::strings (const char*) to be > encoded in > CP-1250 before sending them to fltk code (and back when reading)? Well, the Windows way was to use the MS API to convert your strings into the local MBCS (multi-byte characters) and use that to display your strings. The idea was that the winXX OS would know what the current "code page" (and so forth) were and perform the correct encoding to display your string. It pretty much works, but can be tricky to use... SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

