Hi osg-users,

I have a little problem with osg::Text::setText function. I don't succeed to
draw a sentence with accentuated char (a french one ;-) ). I've tried to
convert my sentence (std::string) in UTF-8 and then pass it to setText like
:



std::string convertMultiByte2utf8(const std::string mb){
   FX88591Codec codec;
   return codec.mb2utf(mb.c_str()).text();
}

std::string help_text = convertMultiByte2utf8("éeeeeé");
text->setText(help_text.c_str(),osgText::String::ENCODING_UTF8);

all I see when I display my drawable is "eeee" .

Where are my "é" ??

Is there a way to display accentuated char or are we obliged to only speak
in english ;-) ?

Thanks all.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to