Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Reading UTF8 strings from xml file and draw it

$
0
0

@vpr_i wrote:

Hey there,

id like to read strings from a .xml file and draw it after.
Everything works fine with Latin characters but as soon as I try to do the same with Arabic/Chinese characters it doesnt work anymore.

It works when i directly pass the UTF8 string as a parameter for the font. (font.draw(“قاتت”)) f.e. but it doesnt work when i read the UTF8 characters in a std::string from the xml file and pass the std::string as a parameter for font.draw.

I believe std::string is capable of holding UTF8 strings (maybe im wrong) but it doesnt work.

Anyone has a solution?

Thanks!!!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles