Filenames with accents in Brazilian Portuguese

Advertisement

glauber.ludwig
Joined:
Posts:
1
Location:
Brazil

Filenames with accents in Brazilian Portuguese

Hello!

I'm trying to rename some folders and files with "mv" command in script, but I'm having a problem that I could not find the solution in the forum.

It's about Brazilian Special Characters.
"joão" means "john" in portuguese.

Example of file: /folder1/folder2/joão.pdf

After connecting to the server, I can "cd" to "folder2" and get the file list with "ls" command, which shows me "joão.pdf" as a file.

If I script to rename it to "mary", using
mv "/folder1/folder2/joão.pdf" "/folder1/folder2/mary.pdf"
I get an error telling the file could not be found.

How can I solve this, since we have many special caracters, like "ã, â, á"...

Thank you!

Reply with quote E-mail

Advertisement

Advertisement

You can post new topics in this forum