Tnxc alot the problem was solved using second parameters in: text1->setText(test, osgText::String::ENCODING_UTF8);
with -> osgText::String::ENCODING_UTF8 = worked without = not worked. On Fri, 23 Nov 2007 13:35:20 +0100, Thibault Genessay <[EMAIL PROTECTED]> wrote: > You might try to have a look at the Character Set setting of your > project (under Configuration Properties / General). If your previous > project file was using the Unicode character set, while your new one > the multi-byte character set, you might have a difference. I've never > had a rea in-depth understanding of this setting, but I kinda suppose > it must be set to unicode for unicode-aware apps. > > You should also try the different combinations of the second parameter > to osgText::Text::setText() and the actual encoding of the file on the > disk. In my case, I've let this parameter to its default value and > also saved the file using the default encoding (unicode codepage 1200 > which I suspect is UCS-2 with a microsoft-specific codepage). > > If you did not read it yet, I really recommend the page > http://www.joelonsoftware.com/articles/Unicode.html. I have read it > about 10 times and now I'm beginning to understand how this unicode > thing works :) It might help you pinpoint the exact source of your > problem. > > Good luck > > Thibault > > On Nov 23, 2007 1:18 PM, Johan Johnsson <[EMAIL PROTECTED]> wrote: >> I think the problem is in visual studio to be honest, i know i can save >> the cpp as encoded types maybe i save it to wrong unicode type? >> >> >> On Fri, 23 Nov 2007 12:54:41 +0100, Alberto Luaces <[EMAIL PROTECTED]> >> wrote: >> >> > El Friday 23 November 2007 12:29:06 Johan Johnsson escribió: >> >> > 1. What is the size in bytes of the arial.ttf file you are >> >> > using? >> >> >> >> 359 kb >> > >> > Then I think you are using the correct one, that is included with the >> > Windows >> > installation. Would it help to set the OSGNOTIFYLEVEL environment >> > variable to >> > DEBUG and inspect the output of the program? >> > _______________________________________________ >> > osg-users mailing list >> > [email protected] >> > >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> >> >> -- >> Mr. Johan Johnsson >> AutoSim AS, Strandveien 106, 9006 Tromsø >> Visit us at http://www.autosim.no >> _______________________________________________ >> 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 -- Mr. Johan Johnsson AutoSim AS, Strandveien 106, 9006 Tromsø Visit us at http://www.autosim.no _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

