Hi

On Thursday 25 September 2008 07:02:18 Gabriel M. Beddingfield wrote:

> I did a little research on the issue, and I believe it may cause a problem
> on Windows.  Windows uses UTF-16 rather than UTF-8... and then you would
> need to use the non-standard wfopen() on Windows.  And as it happens, the
> fopen() call is in TinyXML (even in more recent releases of TinyXML).
>
> Even though there won't be an H2 0,9.4 for Windows... we'll need to solve
> that one eventually.  However, I don't see how this could be solved without
> modifying TinyXML somehow.

Wouldn't it be possible do do something like something like

#ifdef WINDOWS
   TiXmlDocument doc( somehow_convert_to_utf16( filename ) );
#else
   TiXmlDocument doc( filename.toUtf8().constData() );
#endif

(I made up the syntax, but you get the idea, right?)

 - Jakob


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

Reply via email to