几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】readfile support for unicode filenames (http://www.dimcax.com/hust/showthread.php?t=18340)

yang686526 2009-05-07 12:28 PM

【转帖】readfile support for unicode filenames
 
readfile support for unicode filenames?
readfile support for unicode filenames?
what is the best way for me to load filenames containing chinese characters etc.. ? readfile accepts "odchar *" as the filename?
any suggestions?
cheers
jason
just worked out a work-around method for now using short filenames, but is there any future plans for supporting unicode, not sure if the short filenames will always work, but seems so far quite good.
cheers
jason
odchar* can point to mbcs string representing chinese characters on chinese computer.
sergey slezkin
there is more than one multi-byte character encoding. what encodings are specifically supported?

i overloaded the odrxobjectimpl<odstreambuf> class and passed its pointer to the exhostappservices::readfile() function, thus trapping all calls to read and write and providing my own implementation there.


所有的时间均为北京时间。 现在的时间是 12:03 PM.