#echo $LANG 可以显示系统语系,一般中文系统应该是zh_CN.utf-8 www.2cto.com #locale -a 显示系统支持的所有语系。 linux系统自带函数: mbstowcs() setlocale() wcstombs()