Tomislav Posted February 6 Posted February 6 OPEN wont open files within eastern European chars in folders name, so if it's "C:\\~POSLOVI\\ISKOLČENJE\\lift.txt" it wont load it and returns FILE nil, but if it's located in "C:\\~POSLOVI\\ISKOLCENJE\\lift.txt" then it loads it can't find solution anywhere Quote
lastknownuser Posted February 6 Posted February 6 4 hours ago, Tomislav said: OPEN wont open files within eastern European chars in folders name, so if it's "C:\\~POSLOVI\\ISKOLČENJE\\lift.txt" it wont load it and returns FILE nil, but if it's located in "C:\\~POSLOVI\\ISKOLCENJE\\lift.txt" then it loads it can't find solution anywhere Because of encoding. If you read file path with getfiled you would probably get "C:\\~POSLOVI\\ISKOLÈENJE\\lift.txt" so try with that if you are hard coding the path in lisp file I looked into this some time ago but if I remember correctly, lisp is using ANSI and this happens when you are reading text with special characters that is in different encoding (probably UTF-8) Quote
Tomislav Posted February 6 Author Posted February 6 hello, yes i thought it was the encoding, i get this "C:\\~POSLOVI\\ISKOL\U+010CENJE\\lift.txt" unfortunately, i'm not hardcoding it but you must selcect file select file...so how to get encoding right... what's funny, on my old pc all worked ok, and on new one it doesn't Quote
Tomislav Posted February 6 Author Posted February 6 is there some function to check encoding and translate files and folder names accordingly ? Quote
Saxlle Posted February 6 Posted February 6 Hey @Tomislav If you'r using AutoCAD 2021, see the following: https://help.autodesk.com/view/ACD/2021/ENU/?guid=GUID-089A323F-21FF-4337-99A9-375758E23BA4. There is something in: (open filename mode [encoding]); try to put utf8 to [encoding]. I don't have the proper version and can't tell you that is going to work. Quote
Tomislav Posted February 6 Author Posted February 6 (edited) unfortunately i have 2020 and can't add that modifier, or change that system variable LISPSYS Edited February 6 by Tomislav Quote
Saxlle Posted February 6 Posted February 6 Unfortunately, the best way is to "rename" the folder without letters (Ć, Č, Š, Đ, Ž, etc.). Quote
Tomislav Posted February 6 Author Posted February 6 i can do that on my pc, but what about others, and there are A LOT of files to rename....perhaps a function to check encoding and translate my path from utf to ansi Quote
Saxlle Posted February 6 Posted February 6 I think there is no bulit-in function that can do that, except if someone develop the translator from unicodes to ascii. Otherwise, there is always solution for renaming, one of this is Total Commander, in card Files -> Multi - Rename Tool (picture 1). After replacing each letter (Ć, Č, Š, Đ, Ž, etc.) to (C, C, S, DJ, Z, etc.) it will run-over every folder or file and change it (click on Start!). Try it on small files or folders and see what is going to happen. (Probaj sa ovim, uvek odradi posao bez problema ) Quote
Tomislav Posted February 6 Author Posted February 6 thanx, hvala, i know about that program but will try to keep intact file names...found some leads to some lisps that translate but don't quite understand them Quote
Tomislav Posted February 6 Author Posted February 6 found a solution!! for all of u that have same problem you go to Administrative language settings in Windows settings and under Change system locale u change it to your country Quote
Saxlle Posted February 6 Posted February 6 Yes, it does work when change it to desire language. Nice Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.