1 |
Hi there! |
2 |
|
3 |
I have a problem with umlauts in file names. They are working fine when I |
4 |
create a file, but I have lots of files I moved from my former system that |
5 |
show umlauts just as a question mark. I think I transferred them via NFS. |
6 |
|
7 |
I have LANG=de_DE.utf8@euro set now, before it was unset. Those umlaut files |
8 |
refuse to play in applications like amarok2. I can rename them with mv on |
9 |
the command line, making use of tab completion, but it's annoying. |
10 |
|
11 |
So, does anyone have a trick to automate this? |
12 |
|
13 |
I tried using tr. Using od -t x1 I see that what has to be 'ü' comes out as |
14 |
0374 (octal). But "echo ü | od -t o1" gives 0303 0274 which tells me that in |
15 |
unicode the umlauts are coded as two bytes. But I think I cannot use tr to |
16 |
replace one character by a sequence of two characters. |
17 |
And with sed, I don't know how to express the source string, it does not |
18 |
seem to be capable of octal notation. |
19 |
|
20 |
The only way I see is to use tr to replace the original ü with some special |
21 |
character like €, and then use sed to replace € by ü. And repeat this for |
22 |
[äöüÄÖÜß] and all the accented characters which I do not know how to type |
23 |
here with nodeadkeys option set in xorg.conf (I'd be interested in how to do |
24 |
this, too). |
25 |
|
26 |
Do you have simpler ideas? |
27 |
|
28 |
Wonko |