wchar definition?
Posted: Sun Mar 07, 2004 10:01 am
Moin,
I got the problem that Perl scalars (strings) are one byte per character (on default), but functions in Irrlicht want wchar like:
device->setWindowCaption(L"Some text");
Now, L"" does of course not work in Perl
I inquired on the Perl XS mailing list and got this answer:
- Windows has wchar_t as 16-bit and is UCS-2 or perhaps UTF-16
- Many modern UNIXes have wchar_t 32-bit and use UCS-4
What does Irrlicht use? Depends on compiler/codepage? How can I find out in a reliable manner and how to convert simple ASCII strings to the format required?

Thanx,
Tels
I got the problem that Perl scalars (strings) are one byte per character (on default), but functions in Irrlicht want wchar like:
device->setWindowCaption(L"Some text");
Now, L"" does of course not work in Perl

- Windows has wchar_t as 16-bit and is UCS-2 or perhaps UTF-16
- Many modern UNIXes have wchar_t 32-bit and use UCS-4
What does Irrlicht use? Depends on compiler/codepage? How can I find out in a reliable manner and how to convert simple ASCII strings to the format required?

Thanx,
Tels