=================================================
vlisp return the name of the folder in Unicode ?!?
(setq a (strcat (getvar "dwgprefix")(setvar "dwgname"))) = D:\\\U+05D3\U+05D5\U+05E8\U+05D5\U+05DF\\DRAWING3 .DWG"
because the folder name is in Hebrew : "D:\\דורון\\DRAWING3.DWG"
I found the solution:
Problem displaying Arabic letters on windows - YouTube
ttps://www.youtube.com/watch?v=XkczYaBlbNY
hi, you only can write to asciii file, e.g .dxf, txt, csv etc.., but not a drawing file
do you mean open a new drawing?
just curious ac2007
([color="blue"]ascii[/color] "\U+6C49") [color="green"];returns only 92 the first char[/color]
@honglog:
It seems that BricsCAD (the program I use) and AutoCAD have a different implementation of vl-string->list and perhaps also of the ascii function.
Some tests with BricsCAD:
(setq a "\U+0647")
(ascii a) => 1607
(vl-string->list a) => (1607)
(String_To_UniCode a) => "\\U+0647"
(setq b "\U+554A")
(ascii b) => 21834
(vl-string->list b) => (21834)
(String_To_UniCode b) => "\\U+554A"
(vl-string->list "ABC") does return (65 66 67). For ASCII characters, it works.
What about international characters?
(vl-string->list "ه") returns (92 85 43 48 54 52 55), which turns out to be \U+0647
And dismayingly, in my dwgcodepage ANSI_936, (vl-string->list "啊") returns (176 161) rather than its unicode which should be \U+554A