[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
printf unicode documentation
From: |
Dan Jacobson |
Subject: |
printf unicode documentation |
Date: |
Tue, 12 Oct 2004 09:18:28 +0800 |
You should mention that those \u things are Unicode here too
$ man printf|grep -i unicode
(finds none); not just on the Info page.
BTW, in Info are you sure
$ LC_CTYPE=zh_CN.big5 /usr/local/bin/printf \
'\u4e2d\u6587\n' > sample.txt
does what you intend?
$ LC_CTYPE=zh_CN.big5 /usr/bin/printf '\u4e2d\u6587\n'|qp-encode
\u4E2D\u6587
$ LC_CTYPE=zh_TW.Big5 /usr/bin/printf '\u4e2d\u6587\n'|qp-encode
=A4=A4=A4=E5
at least here.
Also you could just use one long command line instead of the two on
the Info page. Use tee if you want to make sample.txt. Oh, maybe you
were checking exit codes. Then use set -e.
- printf unicode documentation,
Dan Jacobson <=