Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Using $ansi to sanitize filenames with file ops (Read 1603 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Using $ansi to sanitize filenames with file ops

I have a very important question.

As a last resort to resolve my problem with invalid characters in file/folder names (posted here) I am re-moving all media files using file-ops again, this time using the $ansi function as suggested on the file ops help page.
Now I see it still leaves certain characters, such as accents (french 'comma' on e) and even @ symbols in file and folder names.

Is this ok or is my usage of the function incorrect? I am using:

Code: [Select]
$ansi($upper(%album artist%)\%album% '('%date%')'\%tracknumber% %title%)
$ansi(%album artist% - %album% '('%date%')'\%tracknumber% %title%)



Using $ansi to sanitize filenames with file ops

Reply #1
Quote
Now I see it still leaves certain characters, such as accents (french 'comma' on e)

You can use $ascii() if you don't like this.

Using $ansi to sanitize filenames with file ops

Reply #2
Why make a new thread? I didn't see the new one and gave you the answer in your original thread.

Using $ansi to sanitize filenames with file ops

Reply #3
Yeah, sorry about that. I thought it was required here to use new threads and since it is a question not directly to do with NAS...
Anyway, I'm really not getting it now: If I use $ascii instead of $ansi geez, file ops still write the "@" and the accents in folder and folder names. And I have literally no clue about codepages and that stuff!

 

Using $ansi to sanitize filenames with file ops

Reply #4
Update: It wasnt an error from file ops, looks like there were some damaged files in folders, hence some did not get modified but just copied.
Both $ansi and $ascii work fine! (And I found out I only need $ansi for my NAS; it does leave @ symbols and french accents; my codepage is iso -(something)- 15, which is Western Europe, hence including French as well).
Or to put it in plain words: Case dismissed, onto the next brother! (Yes, I watch Ghost Hunters  )