Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used rar to list/extract the archive, but the non-ASCII characters became unreadable words.

The 7z could list the folder name/filename with readable characters, however 7z said the unsupported method error when extracting the rar archive.

share|improve this question
1  
RAR has no designated encoding for filenames. Have fun! runs away laughing maniacally – Ignacio Vazquez-Abrams Feb 11 '11 at 6:09
    
What a pity! Do you know any alternative software for a workaround? – Kane Feb 11 '11 at 6:14
2  
Nope. You just have to find something that will extract the raw filenames and then mash on it with convmv. – Ignacio Vazquez-Abrams Feb 11 '11 at 6:18
    
rar recognizes the non-ASCII characters as weird words, even can't create them in the disk when trying to extract the archive. – Kane Feb 12 '11 at 5:08
3  
I've never had problems with unrar and unknown encodings. Maybe try that instead. – Ignacio Vazquez-Abrams Feb 12 '11 at 12:40
up vote 1 down vote accepted

Using unrar instead of rar.

This answer is from @Ignacio vazquez-Abrams.

share|improve this answer

I got the same problem and worked out a solution some what complicate: You will need to have installed a couple of programs, like unrar and hexedit (or any other with the same functionality), then create a simple bash script that to perform the extraction, in my case the content of such script is:

#!/bin/bash
unrar e -v diccionario-arabe-espanol.rar "Diccionario Arabe espaNol.pdf"

where I replaced the real name of the file I want to have extracted with an "ASCII-version", where the á (accented a: ASCII hex code A0) and ñ (tilde-n: ASCII code A4) were replaced with any other ASCII character (one that will not be replaced by your editor with a multi-byte UTF-8 character). You may use hexedit to find out the file header in order to verify the name of the file you are interested in, there you will see in the hex section the codes used for the troublesome characters.

Save your script and change permissions as usual, then edit it with hexedit (or the binary or hexadecimal editor of your choice) and change the characters of file name to be extracted accordingly, that is, in my example, where the A appears, replace it with the hexcode A0, and replace the N of "espaNol" with hexcode A4, save it and run it, that's it, you will end up with the file extracted, and in my system (linux Ubuntu 9.10) my unrar version (UNRAR 4.00 beta 3 freeware) created the extracted file with the name properly converted to UTF-8

In the future I will create another script to automatically perform all the above steps. Hope it whorks for you.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .