设为首页收藏本站

晓东CAD家园-论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 580|回复: 2

[其他] 在DCL文件中使用UNICODE字符

[复制链接]

已领礼包: 40个

财富等级: 招财进宝

发表于 2021-1-26 18:45:44 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
Using Unicode characters in DCL files[size=1.2em]
Some people experienced issues with their DCL files when using them in AutoCAD 2013. Their unicode characters (Cyrillic, Greek, etc.) were not displayed correctly. DCL files by default are saved in ANSI format where the characters depend on the code page being used. In previous versions the character set selection when dispaying the DCL dialogs was based on the OS settings, whereas in the new version it is based on the language version of AutoCAD. This change in behaviour is likely to be reverted.
To avoid this problem you can update your DCL file to UTF-8 format which does not depend on codepages, product language version or OS settings.
Note: UTF-8 DCL files can only be used from AutoCAD 2013 onwards.
To make your DCL file use the UTF-8 format, simply open it in Notepad, then in the Save As dialog set Encoding to UTF-8. Note that Visual Lisp editor doesn't show UTF-8 files properly, so you'll have to edit those in a unicode compatible editor such as Notepad.
I also tested using the UTF-8 DCL file inside a Visual Lisp Application that can be compiled into a VLX file. There are many posts on the net about creating a Visual Lisp Application.
Once I compiled the application (File >> Make Application >> Make Application) then I got the VLX file that I could APPLOAD into AutoCAD. The attached sample application includes a command called TestDcl, which should bring up a dialog. If it looks exactly like this then all is fine:







vlxtest.zip (2.07 KB, 下载次数: 12)
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!

已领礼包: 642个

财富等级: 财运亨通

发表于 2021-1-27 08:33:45 | 显示全部楼层
英文看不懂
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 13个

财富等级: 恭喜发财

发表于 2021-6-24 17:47:18 | 显示全部楼层
学习,学习。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|小黑屋|手机版|Archiver|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )  

GMT+8, 2021-9-21 01:23 , Processed in 0.598004 second(s), 28 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表