User forums > General (but related to Code::Blocks)

wide charatcers

(1/2) > >>

jmccay:
Does anyone know of any good tutorials on using wide characters (& Unicode) with mingw (& in C++ general)?

jmccay

David Perfors:
I don't know a good tutorial, but in C++ you can use wchar_t for characters and std::wstring for strings... I think that is the official way for using wide characters in C++

jmccay:
What about all the char functions?  Like the wide char equivilant of sprintf (swprintf)?  That's what I was reallylooking for info about.

jmccay

stahta01:
Did you look in wchar.h and see if the function exists? Did you include it?

Tim S

thomas:
Challenging Google with "standard library wide character functions" leads to about as many helpful sites as searching for "Amendment 1 to ISO C90". Several of them, for example the Debian one, have code examples.

The GNU C Libarary's documentation and MSDN (Visual C++ section) have chapters on it, too.

Navigation

[0] Message Index

[#] Next page

Go to full version