|
高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】he Problem Using Dwgdirect 2.1
the problem using dwgdirect 2.1.
the problem using dwgdirect 2.1.
when using dwgdirect 2.1,
1. the entity of layer, text style, dim style etc cannot be added to dwg database if their names contain chinese characters(double byte characters).
2. and the dwg file cannot save if file path contains chinese characters(double byte characters).
3. and the external reference block cannot be created if its path contains chinese characters(double byte characters).
by debugging, we find that the reason of the above problem is the odstring class not supporting file path with chinese characters(double byte characters). the methods of odstring will lead to crash directly if parameter string contains chinese characters(double byte characters).
is it a bug of odstring? how do we work around it? thank you!
we'll check the double-byte conversion. meanwhile, make sure you have set correct locale.
btw: you better use unicode, if you are using asian locales.
vladimir
|