乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 95|回复: 5

[编程交流] None-English Stirng in Visual

[复制链接]

4

主题

11

帖子

8

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-5 18:16:26 | 显示全部楼层 |阅读模式
Hi
Can anyone please help me with typing none-english (like Russian or  Arabic) characters in VLISP functions and then exporting to MS Word  using (vlax-invoke-method 'TypeText)?
 
Regards
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 18:31:25 | 显示全部楼层
You cannot use non-ASCII characters in AutoLISP, you will need to represent these characters using their Unicode code points (e.g. \\U+00B2)
回复

使用道具 举报

4

主题

11

帖子

8

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-5 18:45:15 | 显示全部楼层
Thank you Lee Mac... I've learnt alot from you, and appreciate your knowledge.
 
But when I use the ascii code in (vlax-invoke-method 'TypeText "\\U+00B") it's typed \\U+00B in the MS word file and not the target characters.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 19:04:03 | 显示全部楼层
I'm pleased to hear that you could learn from my work.
 
I can't test it at the moment, but have you tried "\\U+00B2" as suggested?
回复

使用道具 举报

4

主题

11

帖子

8

银币

初来乍到

Rank: 1

铜币
20
发表于 2022-7-5 19:13:10 | 显示全部楼层
 
Yes, I've tested the "\\U+00B2"  character.
 
Isn't this issue related to MS word?
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 19:20:52 | 显示全部楼层
 
Not entirely - I am unsure of the character format required by MS Word to accept a Unicode character, but regardless of the required format, a Unicode character cannot appear as a literal in AutoLISP code, as AutoLISP will only accept ASCII characters.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-12 19:30 , Processed in 0.669651 second(s), 75 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表