My file main.cpp where the string is put is encoded in UTF8 without BOM.
* string path2 = "Z:/release with space et é où è
)/Data/3d/data/font/arial.ttf";
if(osgDB::fileExists(path2))
cout << "PATH2 exist ! : " << path << std::endl;
else
cout << "PATH2 NOT exist ! : " << path << std::endl;*
This is not working, but when it will works, I will use a char* instead of
path2 ... does it sounds possible ?
Thanks.
Regards,
Vincent.
2009/7/1 Ulrich Hertlein <[email protected]>
> On 1/7/09 11:08 AM, Vincent Bourdier wrote:
>
>> I just encounter a problem in osgDB::fileExists
>>
>> I made a path :
>> "Z:/release with space et é où è )/Data/myfile.ttf"
>>
>> and osgDB::fileExists return false for this file ... but the path is
>> really good...
>>
>> This is a accent issue, but I don't see how I can manage accent ...
>>
>
> How are you passing the filename? AFAIK OSG expects it to be UTF-8
> encoded.
> /ulrich
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org