![]() |
【转帖】some Problem About Oddbmtext-contents90
some problem about "oddbmtext->contents()"
some problem about "oddbmtext->contents()" hi, when i use "oddbmtext->contents()" to get oddbmtext's string in the attatched file "lpb8008-2.dwg", there are some problem. such as, there is a mtext which's content is "1\u+00b0 nom." displayed in autocad, but the "oddbmtext->contents" return "1? nom.". why? attached files hi, "oddbmtext->contents" return "1? nom." where "?" must be char = 0xb0 (degree). it is true string. acad shows string with degree in mtext editor box (no \u+00b0) and writes it value during save file. the value "\u+00b0" is appeared as result conversion during load dwg file. have you any problem with rendering this string in odamfcapp? -- best regards, sergey zaitcev quote: originally posted by sergey z. hi, "oddbmtext->contents" return "1? nom." where "?" must be char = 0xb0 (degree). it is true string. acad shows string with degree in mtext editor box (no \u+00b0) and writes it value during save file. the value "\u+00b0" is appeared as result conversion during load dwg file. have you any problem with rendering this string in odamfcapp? -- best regards, sergey zaitcev hi, sergey i used "oddbmtext->contents" to get string, then convert the string to my format. so, in order to display correctly in my program, i must to get the correct string such as "1\u+00b0 nom.". when i get the string "1? nom.", i can not convert successful. how can i get the string such as "1\u+00b0 nom."? btw, there is not problem with rending this string in odamfcapp. but , i check the information located in <*model_space>, find that a acdbmtext object' string is "1? nom.". see the attached picture: attached images (25.4 kb, 5 views) hi, most probably your codepage doesn't support the symbol with code 0xb0 therefore you see '?' instead "degree" ('°'). do you see "degree" or "?" in brackets here? quote: when i get the string "1? nom.", i can not convert successful. how can i get the string such as "1\u+00b0 nom."? dwg and dxf files can content both "\u+00b0" and '°' (code 0xb0) symbols. both values are correct. strings like "%%d" and "%%d" are correct too. i think you need process any string. -- best regards, sergey zaitcev |
所有的时间均为北京时间。 现在的时间是 04:19 PM. |