Sign in to follow this  

unicode + tinyxml issue

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

This topic is 4206 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this