- 论坛徽章:
- 84
|
- [yjh@dhcp-12-146 bkr-client-improved]$ LANG=C awk 'BEGIN{printf("[%6.6s]\n", "好的")}' | hexdump -C
- 00000000 5b e5 a5 bd e7 9a 84 5d 0a |[......].|
- 00000009
- [yjh@dhcp-12-146 bkr-client-improved]$ LANG=zh_CN.utf8 awk 'BEGIN{printf("[%6.6s]\n", "好的")}' | hexdump -C
- 00000000 5b 20 20 20 20 e5 a5 bd e7 9a 84 5d 0a |[ ......].|
- 0000000d
- [yjh@dhcp-12-146 bkr-client-improved]$ LANG=zh_CN.gb2312 awk 'BEGIN{printf("[%6.6s]\n", "好的")}' | hexdump -C
- 00000000 5b 20 20 20 20 e5 a5 bd e7 5d 0a |[ ....].|
- 0000000b
- [yjh@dhcp-12-146 bkr-client-improved]$ LANG=zh_CN.gb18030 awk 'BEGIN{printf("[%6.6s]\n", "好的")}' | hexdump -C
- 00000000 5b 20 20 20 e5 a5 bd e7 9a 84 5d 0a |[ ......].|
- 0000000c
- [yjh@dhcp-12-146 bkr-client-improved]$ LANG=zh_CN.gbk awk 'BEGIN{printf("[%6.6s]\n", "好的")}' | hexdump -C
- 00000000 5b 20 20 20 e5 a5 bd e7 9a 84 5d 0a |[ ......].|
- 0000000c
复制代码 |
|