In my script there are data structures that are visible to users. I want to have german umlauts in there. QCAD windows and QCAD linux use different charsets. All recent linux enviromnents default to utf-8, while windows (even 7) use something different.
How can I have umlauts display right in both worlds? Is there a way to tell QCAD Windows, that scripts are UTF-8?
Script file charset
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
QCAD should actually force the UTF-8 codec for all scripts that are read. I've filed an appropriate bug report:
http://www.ribbonsoft.com/bugtracker/in ... ask_id=278
Edit: From the QTextStream documentation: "By default, QTextCodec::codecForLocale() is used, and automatic unicode detection is enabled." Seems like the detection does not always work.
http://www.ribbonsoft.com/bugtracker/in ... ask_id=278
Edit: From the QTextStream documentation: "By default, QTextCodec::codecForLocale() is used, and automatic unicode detection is enabled." Seems like the detection does not always work.