New answers tagged character-encoding
There's alot of information in the online manual for each command, it is always worth having a look at that before giving up and posting a question. man echo explains which escape sequences are allowed. Here's an extract. If -e is in effect, the following sequences are recognized: \0NNN the character whose ASCII code is NNN (octal) \\ ...
This might not answering directly the question, but you can also use vi in hex mode: Open your file and type: ESC :%!xxd to switch into hex mode. You will be able to edit the hex part (the text part will not be updated as you change the hex part). When your are done hit escape again and type: ESC :%!xxd -r to write back the changes you did in hex mode ...
You have to take your codes into quotes: echo -n -e '\x66\x6f\x6f' > byteFileForNow cause otherwise shell replaces \x to x before it goes to echo -e. ps. double escape will also work: echo -n -e \\x66\\x6f\\x6f > byteFileForNow
That's almost certainly a multi-byte UTF-8 character getting interpreted as 2 single-byte characters in some other encoding. The ability to show UTF-8 is more a problem on the client side than the server side. If you are running vi in an xterm, you should start the xterm with UTF-8 support: xterm -u8 -fn ...
The source code has this: for (cp = fp->fname; *cp; cp++) if (!vflag && (*cp < ' ' || *cp >= 0177)) *cp = '?'; So it looks like it will substitute '?' for non-printable-ASCII characters unless you give restore the -v option or, in interactive mode, type the verbose command.
I could succesfully update an MP3 file using: eyeD3 -a "Ю" abc.mp3 This was done with eyeD3 0.7.4-beta as installed using pip from PyPI: pip install eyeD3 Using that eyeD3 you could use a script to extract the artist and title from the MP3's file path and set them as ID3v2 2.4 tags with eyeD3.
I don't have any Cyrillic characters in my music collection but I can do Greek with no problem using the latest version of eyed3 installed by sudo pip install --upgrade eyed3: $ eyeD3 Μπεστ\ οφ/Τζίμης\ Πανούσης\ -\ Κάγκελα\ Παντού.mp3 Τζίμης Πανούσης - Κάγκελα Παντού.mp3 [ 3.43 MB ] ...
Top 50 recent answers are included