几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】unicode Strings (http://www.dimcax.com/hust/showthread.php?t=18887)

yang686526 2009-05-07 05:42 PM

【转帖】unicode Strings
 
unicode strings
unicode strings
my application only supports unicode text. i want to get oddbtext elements as 2-byte wide character strings. are codepages always necessary for this?
if so, how do i figure out the appropriate codepage to use for gettings unicode strings from a given oddbdatabase? is it given somewhere else in the database?
i saw other posts on converting to unicode, but none seem to address whether you always need codepages or not.
thanks
dave
dwgcodepage
i believe the thing i was looking for was
oddbdatabase::getdwgcodepage
starting with 2.0 version odchar is wchar_t and unicode string can be obtained directly from odstring.
dd performs conversion to unicode at file loading now.
sergey slezkin
great, thanks.


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