postgresql 字符集
postgresql数据库支持多种字符集,在配置字符集时要分清楚服务器与客户端的字符集,字符集不一致尽管有时能够发生转换,但带来的问题也很头疼。语言环境的配置也很重要。
服务器字符集<来自文档>:
代码
Name Description Language Server? Bytes/Char Aliases BIG5 Big Five Traditional Chinese No 1-2 WIN950,Windows950 EUC_CN Extended UNIX Code-CN Simplified Chinese Yes 3 EUC_JP Extended UNIX CodeJP Japanese Yes EUC_JIS_2004 Extended UNIX CodeJP,JIS X 0213 Japanese Yes EUC_KR Extended UNIX CodeKR Korean Yes EUC_TW Extended UNIX CodeTW Traditional Chinese,Taiwanese Yes GB18030 National Standard Chinese No GBK Extended National Standard Simplified Chinese No WIN936,Windows936 ISO_8859_5 ISO 88595,ECMA 113 LatinCyrillic Yes ISO_8859_6 ISO 6114Arabic Yes ISO_8859_7 ISO 7118Greek Yes ISO_8859_8 ISO 8121Hebrew Yes JOHAB JOHAB Korean (Hangul) No KOI8 KOI8R(U) Cyrillic Yes KOI8R LATIN1 ISO 94 Western European Yes ISO88591 LATIN2 ISO Central European Yes ISO88592 LATIN3 ISO South European Yes ISO88593 LATIN4 ISO 4 North European Yes ISO88594 LATIN5 ISO 9128 Turkish Yes ISO88599 LATIN6 ISO 10144 Nordic Yes ISO885910 LATIN7 ISO 13 Baltic Yes ISO885913 LATIN8 ISO 14 Celtic Yes ISO885914 LATIN9 ISO 15 LATIN1 with Euro and accents Yes ISO885915 LATIN10 ISO 1614111 Romanian Yes ISO885916 MULE_INTERNAL Mule internal code Multilingual Emacs Yes SJIS Shift JIS Japanese No Mskanji,ShiftJIS,WIN932,Windows932 SHIFT_JIS_2004 Shift JIS,0)"> Japanese No sql_ASCII unspecified (see text) any Yes UHC Unified Hangul Code Korean No WIN949,Windows949 UTF8 Unicode,bit all Yes Unicode WIN866 Windows CP866 Cyrillic Yes ALT WIN874 Windows CP874 Thai Yes WIN1250 Windows CP1250 Central European Yes WIN1251 Windows CP1251 Cyrillic Yes WIN WIN1252 Windows CP1252 Western European Yes WIN1253 Windows CP1253 Greek Yes WIN1254 Windows CP1254 Turkish Yes WIN1255 Windows CP1255 Hebrew Yes WIN1256 Windows CP1256 Arabic Yes WIN1257 Windows CP1257 Baltic Yes WIN1258 Windows CP1258 Vietnamese Yes ABC,TCVN,TCVN5712,VSCII