3.file has one value more than the 12 I expected. (?)The 0A at the end is the newline, "\n". If you omit it, the shell prompt will be printed on the same line as the text:
username@localhost:~$ printf '\xf0\xd2\xc9\xd7\xc5\xd4' | iconv -f koi8-r Приветusername@localhost:~$Together with carriage return "\r", this can be used to produce various effects on the console. For example, the following program prints two different strings, but after it's finished the terminal will look like it didn't print anything:
(Actually, you may see part of its output if your shell prompt is short enough. For more honest but less portable version, see man console_codes.)perl -e '$|=1; print "Now you see me!"; sleep 1; print "\r"; print "No +w you don\x27t! "; sleep 1; printf "\r"'
In reply to Re^3: create clone script for utf8 encoding
by Anonymous Monk
in thread create clone script for utf8 encoding
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |