I often receive some emails with MS word or powerpoint format attachments. But I find I could not open it directly with the “open in openoffice.org” option in the Evolution. When this happens, I have to save the attachment to local disk with an English name and reopen the renamed file with openoffice. This is not so convenient.
This is certainly an openoffice problem because other programs like Abiword can open it correctly. After playing with LC_CTYPE for a while, I found openoffice (version 2.0.2 as this is writing) doesn’t support setting LC_CTYPE to zh_CN.GBK, zh_CN.GB2312 or zh_CN.GB18030. If LC_CTYPE is set to “C” or en_US, etc, the Chinese named file can be opened without any problem. But the LC_CTYPE has to be set to something indicating Chinese for me because I need to use SCIM to input Chinese (If LC_CTYPE is set to en_US like, SCIM won’t list the pinyin input method). Finally I found zh_CN.UTF-8 plays the trick. After export LC_CTYPE=zh_CN.UTF-8 in my .bashrc, openoffice is able to open Chinese filename (within Evolution) correctly and I can still use SCIM to input Chinese.