Tomislav Posted Thursday at 06:57 AM Posted Thursday at 06:57 AM 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 Thursday at 11:07 AM Posted Thursday at 11:07 AM 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 Thursday at 11:17 AM Author Posted Thursday at 11:17 AM 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 Thursday at 11:19 AM Author Posted Thursday at 11:19 AM is there some function to check encoding and translate files and folder names accordingly ? Quote
Saxlle Posted Thursday at 11:41 AM Posted Thursday at 11:41 AM 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 Thursday at 11:50 AM Author Posted Thursday at 11:50 AM (edited) unfortunately i have 2020 and can't add that modifier, or change that system variable LISPSYS Edited Thursday at 11:52 AM by Tomislav Quote
Saxlle Posted Thursday at 12:06 PM Posted Thursday at 12:06 PM Unfortunately, the best way is to "rename" the folder without letters (Ć, Č, Š, Đ, Ž, etc.). Quote
Tomislav Posted Thursday at 12:10 PM Author Posted Thursday at 12:10 PM 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 Thursday at 12:24 PM Posted Thursday at 12:24 PM 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 Thursday at 12:28 PM Author Posted Thursday at 12:28 PM 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 Thursday at 02:05 PM Author Posted Thursday at 02:05 PM 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 Thursday at 04:17 PM Posted Thursday at 04:17 PM 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.