Skip to main content
gamedev.net
🔒 Locked

unicode + tinyxml issue

Started by Valor Knight Jun 10, 2006 at 3:06 AM 0 replies 2.9k views
Original Post
Valor Knight
Valor Knight
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
There is no life without honor
Valor Knight
Valor Knight
...

Edit: figured it out

[Edited by - Valor Knight on June 13, 2006 1:37:18 PM]
There is no life without honor

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.