are you sure SDL can handle unicode? It seems C++ doesn't have Unicode support. So try third party libraries!
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
I'm using Unicode to test difference between 'a' and 'A'. So yes, it would have unicode. (I'm using GCC for Windows). And what third party libraries could I use?
(are there any other possible solutions?)
Check with POCO Unicode , if you have question ask in their forums
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
If you don't mind Try wxWidgets . from version 2.9.x you can use wxBase which have no GUI components Just console. Remember to compile with unicode flag set.
wx is known to work with Unicode "naturally" when compiled with Unicode. also there is wx-SDL tutorial .
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
i failed :)
I put the SDL Enable Unicode call in the object initialization not the program initialization so that's why it didnt work. now it does.
(also changed the typecasted character values to integers, that might've helped.)
stupid me
Glad you resolved it :)
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392