查看单个帖子
旧 2009-05-07, 05:42 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)