And my problem is although i have no encoding problems with arrWords, some utf-8 characters are not printed or treated well in hElemanlar.
How can i fix it?
The problem is that UTF-8 uses more than one byte for many characters.
The character ö is stored as two bytes (0xC3, 0xB6). Using your method you will split them so that they are stored as two elements in hElemanlar but that will not display correctly because it's no longer valid UTF-8. You need to keep them together as one element in hElemanlar.
Very strange... I write c++ in cocos2d-x. When i test the code mentioned above, it works in Samsung Galaxy S4, Sony Experia M4 Aqua. But fails in Samsung Galaxy S3 and Samsung Tablet SM-T113 so far...