Jump to content
  • Advertisement
Sign in to follow this  
Valor Knight

unicode + tinyxml issue

This topic is 4420 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

Dose anyone know of a modification of tiny xml (or a way to extract unicode from the values) to load and retreive unicode strings? I need to load (or actually, want to support) non-ascii filenames and text in the document. Everything I need is in a std::wstring variable, and it just dosnt work/isnt supported in normal tinyxml. Here is what I want to do: TiXmlDocument xmldoc( L"xmldocument.xml" ); //need a unicode filename ... std::wstring test = object->Attribute( "id" ); //only returns a const char* It says its compatiable with diffrent languages, so if it is stored correct in a char*, how can I convert that to a std::wstring or a wchar_t? mostly I want to know how to get the information back, I can live with a ascii filename thanks

Share this post

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!