C++ and utf-8 and win32

hi
I'm new to win32 but I've programmed a lot in c++.
I want to use Persian letters in my win32 application.
like this one:
تست
but when i compile and run the application, i get some strange things.
what should I do?
thanks
Use Unicode compilation mode, win32 uses UTF16 internally anyway. If this is a console application beware that is very hard to output non ASCII to a console, no problem if your app is a GUI one.
how?
it's gui
What IDE are you using ? Visual Studio uses Unicode by default, others needs to add UNICODE and _UNICODE as prepocessor definitions.
code::blocks
thanks, i will test that
thanks solved

but i add 'L' before all of my char* and changed them to WCHAR, is it okay?

and now in writing to file, how should i use that?
Topic archived. No new replies allowed.