417| 9
|
请问lisp输出文本格式哪里设置编码utf-8 |
10明经币
最佳答案;;将字符串保存为UTF-8编码的文件(不带BOM)
(defun try-str-write-UTF-8 (str file / binarystream filestream size)
(setq filestream (vlax-create-object "Adodb.Stream"))
(vlax-put-property filestream 'Type 2) ; 1二进制读取 2文本模式读取
(vlax-put-property filestream 'Mode 3) ; 1-读,2-写,3-读写
(vlax-put-property filestream 'Charset "utf-8") ; 设置编码为UTF-8
(vlax-invoke filestream 'Open)
( ...
| ||
发表于 2024-12-27 18:25:54
|
显示全部楼层
| ||
| ||
| ||
| ||
| ||
| ||