The character-encoding tag has no wiki summary.
13
votes
3answers
3k views
bulk rename (or correctly display) files with special characters
I have a bunch of directories and subdirectories that contain files with special characters, like this file:
robbie@phil:~$ ls test�sktest.txt
test?sktest.txt
Find reveals an escape sequence:
...
11
votes
3answers
2k views
Understanding Unix file name encoding
I have a hard time understanding how the file name encoding works. On unix.SE
I find contradicting explanations.
File names are stored as characters
To quote another answer:
Several questions about ...
7
votes
2answers
2k views
Several questions about file-system character encoding on linux
Due to a lot of file exchange works between Windows (GBK encoding) and Linux (UTF-8 encoding), it will encounter character encoding issues easily, such as:
zip/tar files whose name contains chinese ...
5
votes
2answers
810 views
working with filenames in a different encoding over ssh
I'm ssh'ing to a remote system where a different encoding for the filenames (and for the users' locales) has been used. And this causes some problems.
Problems solved by matching the locale settings
...
2
votes
2answers
1k views
Bash/Korn shell script edited on Windows throws error '…^M: not found'
Some background on the issue:
I am new to scripting and wrote a simple Bash script in Windows using Notepad++.
cxStopAllServicesOnSERVER.sh
#usr/bin/bash
cd "/some/path"
echo "Hi. Logs can be found ...
0
votes
1answer
1k views
Script failing with “command not found: ^M”
When I try to run the following script in zsh, via the command /bin/zsh ~/.set_color_scheme.sh I get the following error:
command not found: ^M
The script has u+x permissions and it used to work on ...
17
votes
2answers
8k views
How can I set VIM's default encoding to UTF-8?
I'd like to contribute to an open source project providing translated strings. One of their requirements is that contributors must use UTF-8 as the encoding for the PO files.
I'm using VIM 7.3 on ...
13
votes
3answers
6k views
What charset encoding is used for filenames and paths on Linux?
Does it depend on what file system I use? For example, ext2/ext3/ext4 but also what happens when I insert one of those "joliet" CD-ROMs with ISO 9660? I've heard that POSIX contains some sort of spec ...
5
votes
3answers
865 views
How to print all printable ASCII chars in CLI?
How can I list all the printable ASCII characters in the terminal?