Jump to content

OPEN wont open files within folders with eastern European chars


Recommended Posts

Posted

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

Posted
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)

Posted

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 🤨

Posted

is there some function to check encoding and translate files and folder names accordingly ?

Posted (edited)

unfortunately i have 2020 :( and can't add that modifier, or change that system variable LISPSYS

Edited by Tomislav
Posted

Unfortunately, the best way is to "rename" the folder without letters (Ć, Č, Š, Đ, Ž, etc.). 🫤

 

 

Posted

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

Posted

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 😉)

 

image.thumb.png.204870f785e1da291be8a394d3670410.png

Posted

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

 

Posted

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

Snimka zaslona 2025-02-06 150046.jpg

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...