Page 1 of 1

Chars with Accents

Posted: December 9th, 2008, 8:33 am
by Renfield
Hi,

I have a NAS TS-409 and I use sabnzbd since few months.
I'm French.

Sometimes, rar filenames, or name of the files in rar archivesĀ  contains some accentuated characters.
Sometimes unrar refuses it ; but most of the time, files are unrared, but I can't access files through FTP

Could you make something (remove characters or convert them in order to allow them) ?

Re: Chars with Accents

Posted: December 9th, 2008, 4:06 pm
by shypike
Linux systems handle accented chars a bit awkward.
unrar just assumes that the filesystem uses UTF-8.
The file-system may not be able to handle this, because often it is set to some ISO 8-bit character set.
There's nothing that SABnzbd can do about this.

What I do, is run a user-script that uses the convmv command.
convmv isĀ  a Perl script, which maybe available as a package for your platform.
If not, make sure Perl is installed and get the script from here: http://www.j3e.de/linux/convmv/

Code: Select all

#!/bin/sh
# Convert names from iso-8859-1 to utf-8
convmv -f iso-8859-1 -t utf-8 --notest -r --nfc "$1"