Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Filename encoding error containting "?" in name.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Demonking
n00b
n00b


Joined: 12 Mar 2007
Posts: 38

PostPosted: Sun Jan 26, 2014 8:03 pm    Post subject: [solved] Filename encoding error containting "?" i Reply with quote

Hello,

i have a problem with a lot of files(1000+) which i have got from a friend(windows user).

The Problem is, that i'm a german and my friend has Umlauts in his filenames.

Every Umlaut is marked as " ? " in my terminal (rxvt-unicode).

After the following command there is a strange content in the file

Code:


demonking ~ $ ls -l > filelist

demonking ~ $ vim filelist

######Content######
Im <99>sterreichurlaub.jpg
<9a>ber die Oberbaumbr<81>cke.jpg
...
####End_Content#####


The realnames should be :

Quote:
Im Österreichurlaub.jpg
Über die Oberbaumbrücke.jpg


Code:

demonking ~ $ file filelist

filelist: Non-ISO extended-ASCII text


When i use stat for the filename than the umlauts are marked like this :

Code:

ü = \201
Ö = \231
Ü = \232



My Settings:

Code:

demonking ~ $ locale

LANG=de_DE.utf8
LC_CTYPE="de_DE.utf8"
LC_NUMERIC="de_DE.utf8"
LC_TIME="de_DE.utf8"
LC_COLLATE="de_DE.utf8"
LC_MONETARY="de_DE.utf8"
LC_MESSAGES="de_DE.utf8"
LC_PAPER="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_ADDRESS="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_IDENTIFICATION="de_DE.utf8"
LC_ALL=



Code:

demonking ~ # emerge -avp rxvt-unicode

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] x11-terms/rxvt-unicode-9.18  USE="focused-urgency font-styles mousewheel perl startup-notification vanilla xft -256-color -alt-font-width -blink -buffer-on-clear -fading-colors -iso14755 -pixbuf -secondary-wheel -unicode3 -wcwidth" 0 kB



Because of this kind of error, i'm not able to move the files.

Hope someone could help :)
_________________
I finally understand why Java's security model is so torturous:
It's to protect everyone else against people who write code like this.

The Answer to Life, the Universe, and Everything = 42


Last edited by Demonking on Mon Jan 27, 2014 5:36 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32315
Location: 56N 3W

PostPosted: Sun Jan 26, 2014 8:38 pm    Post subject: Reply with quote

Demonking,

I suspect your Windows using friend gave you a vfat or iso9660 filesystem.
When you mount these filesystems, you may use the codepage= option. codepage=850 may work.
You will need kernel support too.
Code:
  │ │    --- Native language support                                               │ │ 
  │ │    (utf8) Default NLS Option                                                 │ │ 
  │ │    <*>   Codepage 437 (United States, Canada)                                │ │ 
  │ │    < >   Codepage 737 (Greek)                                                │ │ 
  │ │    < >   Codepage 775 (Baltic Rim)                                           │ │ 
  │ │    <M>   Codepage 850 (Europe)                                               │ │ 
  │ │    < >   Codepage 852 (Central/Eastern Europe)                               │ │ 
  │ │    < >   Codepage 855 (Cyrillic)                                             │ │ 
  │ │    < >   Codepage 857 (Turkish)                                              │ │ 
  │ │    < >   Codepage 860 (Portuguese)                                           │ │
... 

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Demonking
n00b
n00b


Joined: 12 Mar 2007
Posts: 38

PostPosted: Mon Jan 27, 2014 5:35 am    Post subject: Reply with quote

NeddySeagoon wrote:
Demonking,

I suspect your Windows using friend gave you a vfat or iso9660 filesystem.
When you mount these filesystems, you may use the codepage= option. codepage=850 may work.
You will need kernel support too.
Code:
  │ │    --- Native language support                                               │ │ 
  │ │    (utf8) Default NLS Option                                                 │ │ 
  │ │    <*>   Codepage 437 (United States, Canada)                                │ │ 
  │ │    < >   Codepage 737 (Greek)                                                │ │ 
  │ │    < >   Codepage 775 (Baltic Rim)                                           │ │ 
  │ │    <M>   Codepage 850 (Europe)                                               │ │ 
  │ │    < >   Codepage 852 (Central/Eastern Europe)                               │ │ 
  │ │    < >   Codepage 855 (Cyrillic)                                             │ │ 
  │ │    < >   Codepage 857 (Turkish)                                              │ │ 
  │ │    < >   Codepage 860 (Portuguese)                                           │ │
... 


Thx a lot NeddySeagoon it works now! :D

You have saved me a lot of time.
_________________
I finally understand why Java's security model is so torturous:
It's to protect everyone else against people who write code like this.

The Answer to Life, the Universe, and Everything = 42
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum