Saturday, November 19, 2005

Issues with utf-8 and zh_CN.gb2312:
When u set the locale of Linux to utf-8, and create a file named with chinese charactors. Then u put the file to other Linux which's locale is zh_CN.gb2312 or other differrent with utf-8. Other Linux cann't recognize the file.
Sometimes, I have to change the locale from utf-8 to gb2312, or gb2312 to utf-8.
Edit ~/.bashrc, add export LANG=utf-8 export LC_ALL=utf-8
There is a tool can change the filename from one locale to another: convmv
iconv can change the content of the file.

0 Comments:

Post a Comment

<< Home