• Advertisement
Sign in to follow this  

TinyXML and unicode

This topic is 3493 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I looked into TinyXML in an attempt to get an XML parser up and running fast, but to my utter chock, the TiXmlDocument class' constructor only takes a char as its parameter for the file name... I need to be able to pass a wchar_t.. is this possible somehow? The thing is that I need to support all possible languages for the XML loading.

Share this post


Link to post
Share on other sites
Advertisement
I know TinyXML can handle UTF-8 text in the XML file...perhaps it can use a UTF-8 string for the filename?

If not there's a method to load a document using a FILE pointer, so you could probably use _wfopen to open the file.

EDIT: I checked the TinyXML source and using UTF-8 isn't going to work, however using the FILE pointer should work fine.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement