Character ? in the name of a folder
Hi all,
I copied a folder from a PC to another PC. When I open the destination, i have a folder named Vid?o instead of Video. With the shell, I can see it with a "ls" of the current folder. But I can not enter the folder. When I type "cd Vid?o" it does not work. What should I do to be able to handle a folder with such a name ? Do I miss a particular set of character ? Thanks |
Hi PlatinumX,
have you tried "cd Vid" and then typing the tab-key? Another way is "cd Vid\" and then tab. Markus |
Hi,
The question mark (?) is a special character (the way bash sees it). It needs to be escaped to make it loose its special function. I know of 2 ways of doing just that: cd 'Vid?o' - single quotes. Bash does not touch anything within single quotes. cd Vid\?o - The backslash "escapes" the ?, which tells bash not to touch it. But for me the bigger question would be: How did Video become Vid?o...... Anyway, hope this helps. |
Quote:
|
It seems it is about the encoding.
Right, the source folder was nammed "Vidéo". Where can I check in my system the encoding mode ? Thanks |
env
|
Quote:
Code:
c@CW8:~$ stty Code:
c@CW8:~$ stty -iutf8 |
Quote:
|
About the env, isn't there an international encoding charset supporting all characters ? like €,£,é,è.
Isn't UTF-32 capable of encoding the whole Unicode charset ? |
Quote:
Code:
$ echo $LANG BTW using UTF-32 in a system with UTF-8 content won't work -- they aren't the same. |
All times are GMT -5. The time now is 10:13 PM. |