来自:
http://code.google.com/p/wowmodelviewer/source/browse/trunk/src/util.cpp
1 wxString langCSConv[] =
2 {
3 _T("iso-8859-1"),
4 _T(""),
5 _T(""),
6 _T(""),
7 _T("gb2312"),
8 _T("big5"),
9 _T(""),
10 _T(""),
11 };
12 wxString CSConvStr;
13
14 wxString CSConv(wxString str)
15 {
16 if (langID <= 0 || langCSConv[langID] == _T(""))
17 return str;
18 CSConvStr = wxCSConv(langCSConv[langID]).cWC2WX(wxConvUTF8.cMB2WC(str));
19 return CSConvStr;
20 }
21