Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Filenames with accents in Brazilian Portuguese


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!