Hi Archer, PageLOD stores filenames as std::string, so to support wide characters one will have to encode them. I'm not an expert in this area, others in the community are better placed to comment on what you'll need to do/or whether we'll need to modify the OSG to support what you are doing. FYI, between 2.6 and 2.8 some work for support encoded filenames was introduced. Have a look through the ChangeLog for this.
Robert. On Tue, Feb 17, 2009 at 8:56 AM, archer <[email protected]> wrote: > Hi all, > > > > I try to combine several Chinese named .ive files to a pagedlod file, write > it to disk with postfix .ive . Open it with osgviewer, it works. Then I try > to do the same thing, loading .osg Chinese named files, writing to disk with > postfix .osg, opening it with osgviewer, it doesn't work. I debug it, and > find in memory, the Chinese named file name is not existed, only a short > name which does not contain the Chinese characters. So osgviewer can't find > the right .osg file to load. > > > > I also convert .ive pagedlod file to .osg pagedlod file, it not work. > > > > Why ive pagedlod can do while osg pagedlod can't. is it a bug or osg > pagedlod does not support wide character? > > > > Of course I used the sentence "setlocale(LC_ALL, "chs");" I'm using windows > XP, vs2005, sp1, osg2.8 > > > > Think you, > > archer > > _______________________________________________ > 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

