Invalid Characters after unpacking

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Tscherno
Newbie
Newbie
Posts: 7
Joined: July 25th, 2010, 7:16 am

Invalid Characters after unpacking

Post by Tscherno »

Hi there,

i have a problem. I have running sabnzbd on my QNAP. Sometime after unpacking there are some files which are unaccessible via SMB. When i look via SSH they have strange characters in the filenames in it (lika a CR) where for example german umlauts should be (ä,ü,ö). I guess the unrar choose the wrong encoding. Is there a possibility to set an option like for the folders to remove them? Any possibility to control the encoding for the uncompression? Or at last ressort to put an user script in which removes the characters?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Invalid Characters after unpacking

Post by shypike »

Unrar always uses UTF-8 encoding, so your file system should support that
and Samba (the service that simulates Windows shares) should be told about it.
An alternative would be to run the a user script that calls
a very popular Perl script for this (available as a package for most systems).
Unfortunately, I cannot remember its name right now.
Tscherno
Newbie
Newbie
Posts: 7
Joined: July 25th, 2010, 7:16 am

Re: Invalid Characters after unpacking

Post by Tscherno »

I just searched a little bit and maybe found the tool you mentioned: fslint?

http://en.flossmanuals.net/FSlint/BadNames

I would be more happy with a solution on the unraring-side but if there is none i will try it that way... Is it possible to use the logic which is already build into sabnzbd for the directory cleanup?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Invalid Characters after unpacking

Post by shypike »

The best way is to configure your system to support UTF-8.
I cannot influence what rarlabs doesn with unrar.
fslint isn't the one I used, but if it does the job, why not.

We will not build a "solution" into SABnzbd, this is way too complex
to do it right on all platforms in all circumstances.
Even then it would require people to enter encoding info about their system into SABnzbd.
It would be a support nightmare.
Anyway: our opinion is that systems should just support UTF-8
instead of mucking about with obsolete code page methods.
Tscherno
Newbie
Newbie
Posts: 7
Joined: July 25th, 2010, 7:16 am

Re: Invalid Characters after unpacking

Post by Tscherno »

shypike wrote: The best way is to configure your system to support UTF-8.
Hmh how to do that?
Tscherno
Newbie
Newbie
Posts: 7
Joined: July 25th, 2010, 7:16 am

Re: Invalid Characters after unpacking

Post by Tscherno »

OK i think i found the script you mentioned:

http://j3e.de/linux/convmv/man/

I put that into a user-script which looks like that:

#!/bin/sh
convmv -r -f iso-8859-1 -t utf8 --notest $1

Lets see if this is working...
Last edited by Tscherno on July 27th, 2010, 12:59 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Invalid Characters after unpacking

Post by shypike »

That's the one.
Post Reply