unrar: filename with German special characters

Get help, report and discuss bugs.
hugbug
Developer & Admin
Posts: 7566
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: unrar: filename with German special characters

Post by hugbug » 12 Oct 2019, 12:24

Unrar shipped with nzbget is compiled by me from official unrar source code. Because this source code doesn't come with good documentation about how to compile it properly for each system, it is well possible that I have used wrong compiler settings affecting unicode compatibility. Moreover it's compiled using a certain cross-compiling toolchain and results may be not 100% compatible with your system.

You can try compiling current version of unrar specifically for your system using compiler provided by system vendor.

Another possibility is to ask the NAS vendor to update their unrar.

rolmei
Posts: 51
Joined: 13 Apr 2013, 15:52

Re: unrar: filename with German special characters

Post by rolmei » 30 Aug 2020, 08:42

Any new ideas that works?

forenuser
Posts: 3
Joined: 28 Oct 2020, 15:55

Re: unrar: filename with German special characters

Post by forenuser » 28 Oct 2020, 16:10

I am using the wrapper script from al3x. It is working with unrar 6.0.1.

Code: Select all

#!/bin/sh
export LANG=en_US.UTF-8
unrar "$@"
exit $?
Last edited by forenuser on 30 Oct 2020, 11:19, edited 2 times in total.

al3x
Posts: 28
Joined: 24 Aug 2017, 17:13

Re: unrar: filename with German special characters

Post by al3x » 28 Oct 2020, 19:01

Please keep in mind that my wrapper script is not working unfortunately. Please have a look at my later comment from 06 Oct 2019, 14:34. It's actually using a different version of unrar, that's why it is working.

forenuser
Posts: 3
Joined: 28 Oct 2020, 15:55

Re: unrar: filename with German special characters

Post by forenuser » 28 Oct 2020, 19:20

I saw your comment. Nevertheless your wrapper is working in my environment (Fritz!Box with freetz-ng). If the wrapper doesn't work in your environment en_US.UTF-8 might not be available on your system. In this case you should find out which locales are available.

forenuser
Posts: 3
Joined: 28 Oct 2020, 15:55

Re: unrar: filename with German special characters

Post by forenuser » 18 Nov 2020, 17:32

I had also problems with german special characters also on two other systems:
  • Wd Mycloud
  • NAS542
I was able to solve the problem with the following steps:
  • Install Entware
  • Install Entware Busybox, MC and unrar
Moreover I checked that the following lines are in /opt/etc/profile:

Code: Select all

export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'

Caveman
Posts: 2
Joined: 09 Mar 2016, 09:36

Re: unrar: filename with German special characters

Post by Caveman » 19 Dec 2020, 09:47

al3x wrote:
06 Oct 2019, 12:34
So here is what I know so far:
  • export LANG=en_US.UTF-8 doesn't seem to help at all
  • unrar in version 5.21 (the one my NAS comes with) doesn't have those problems
  • unrar in version 5.70 (the one shipped with NZBget) seems to have problems with those characters

Currently I don't know how to solve this tbh. 5.70 seems to be important and brings new features so I don't want to use the old one. But I don't know what's wrong with 5.70, maybe it doesn't support unicode and has to be replaced with another version?

Not sure what to do here...
I agree with al3x, i'm having the same problems with unpacking. Files with special characters are cut off. I've been trying to figure it out for mounths, it isn't a language problem, my profile file is set just right (you will find this answer in many post about this)
The mention above, gave me the answer. Unrar with the NAS is indeed 5.21 and in nzbget is 5.70, so i changed the settings to use the 5.21 version and it al works just fine ! (even the german test nzb :) )
I think Hugbug is right, its probebly some compiling problem, 5.21 is about 275k and 5.70 is 725k (?), did some tests and 5.21 is considerably faster than 5.70, about 50 to 100% depending what you are unpacking. I don't know the differance between 5.21 and 5.70, probebly some features i'll never use... So for people with this problem, use the native unrar version.
Hugbug keep up the good work ! i'm a huge fan of nzbget (i almost went to the "other"nzb because of this problem :) )

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests