查看单个帖子
旧 2009-05-06, 06:15 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】multibyte text seems to be binary

multibyte text seems to be binary
multibyte text seems to be binary
hello all,
i am obviously doing something wrong with the attached drawing.
i always thought that text would either be ascii, or escaped as in /u+xxxx (unicode) or /m+yxxxx (multibyte), but the textstring value of a oddbtext entity seems to be all "binary/garbage" instead of being in the format of /m_yxxxx, (note however in autocad the properties do show the escape version of /m+yxxxx. ?????)
(note: that the "english" characters are all ok, just the japanese characters are not. )
all i do is as follows :
if ( entityptr->isa() == oddbtext::desc() ) {
oddbtextptr odtextptr = entityptr;
std::string stext = odtextptr->textstring().c_str();
std::cout << stext << std::endl;
}
i am using dd 1.13.
what am i doing wrong?
cheers
jason
attached files
dont worry, just figured out it is the actuall multibyte data, and so i must use is leadbyte etc... to work out the text.
sorry for wasting anyones time duh.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)