查看单个帖子
旧 2009-05-07, 05:43 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】unicode, Odstring And Dwgdirect 2.2.0, 2.3.0

unicode, odstring and dwgdirect 2.2.0, 2.3.0
unicode, odstring and dwgdirect 2.2.0, 2.3.0
hi,
i need to put some texts in chinesse in old acad unicode format ("\m+0c5d3") to external file from dwg file.
is there a way to get unicode characters/texts from odstring objects in old acad format (before acad 2007) like i.e. "\m+0c5d3" not as wchar_t buffer?
before dwgdirect 2.2.0 odstring object could retrive unicode text in such a format.
regards
savip
unicode characters were represented in acad as \u+xxxx where xxxx is hexadecimal value of unicode character.
\m+nxxxx means:
n - number from 1 to 5 indicating one of supported by autocad asian code pages and xxxx hexadecimal value of mbcs character in the code page.
could you provide more details of the problem you have?
sergey slezkin
i just want to get unicode string from odstring in earlier dwgdirect (i.e. 2.11) notation:
i want to get "\u+xxxx" instead of wchar_t buffer for a unicode character/string.
is it possible to get it from odstring or other dwgdirect string object?
or
do i have to use utf coding/decoding functions (i.e. mfc functions) to create text in "\u+xxxx" notation?
i need it to write such a string to a file, which accepts unicode texts in "\u+xxxx" notation, not as wchar_t buffers.
regards
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)