Hi Yan,

Yan Morin wrote:
> -    TiXmlDocument doc( filename.toAscii() );
> +//    TiXmlDocument doc( filename.toAscii() );
> +    TiXmlDocument doc( filename.toUtf8().constData() );
[snip]
> I don't know if filename.toUtf8().constData() is very safe on other 
> platform, but it works well with utf-8 gnu/linux.

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.

Any thoughts?

Thanks,
Gabriel



-------------------------------------------------------------------------
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