I still can not display UTF8 characters in sample HelloWorld project. I changed cpp and header files encoding to Unicode (UTF-8 with signature) by using “Advanced Save Options” and also i used setlocale function, but I can not see any changes. Is there any other way to change file encoding or am I doing something wrong?
Eventually I found the reason of the error. Actually Visual Studio “Advanced Save Options” is not working properly. I saved all the cpp and header files several times with this option but I saw that the files are not saved as UTF8 properly. I am working with Turkish characters like “şüı” and when I debug the code deeply in the cocos2d Label->setString function ş character’s code is shown as “-2”. After this strange state I opened the file with PSPad and noticed that the file is not saved as UTF8. I saved all the files with PSPad again and the problem is solved.