View previous topic :: View next topic |
Author |
Message |
Demonking n00b
Joined: 12 Mar 2007 Posts: 41
|
Posted: Sun Jan 26, 2014 8:03 pm Post subject: [solved] Filename encoding error containting "?" i |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Sun Jan 26, 2014 8:38 pm Post subject: |
|
|
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 |
|
|
Demonking n00b
Joined: 12 Mar 2007 Posts: 41
|
Posted: Mon Jan 27, 2014 5:35 am Post subject: |
|
|
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!
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 |
|
|
|
|
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
|
|