torlee 发表于 2018-9-25 06:55:33

Oracle操作系统和支持-字符集

  一、oracle 支持的字符集:
  在 oracle 官方文档中提到支持以下中文字符集:
  ZHS16CGB231280CGB2312-80 16-bit Simplified Chinese-- 11g 已不支持
  ZHS16GBK      GBK 16-bit Simplified Chinese
  ZHS32GB18030    GB18030-2000                        -- 11g 已不支持
  ZHT16BIG5       BIG5 16-bit Traditional Chinese       -- 11g 已不支持
  ZHT32EUC      EUC 32-bit Traditional Chinese
  ZHT16HKSCS      MS Windows Code Page 950 with Hong Kong Supplementary Character Set
  ZHT16MSWIN950   MS Windows Code Page 950 Traditional Chinese
  而我在11g创建 DB 时,选项中CUUG收费后只支持以下几种中文字符集:
  ZHS16GBK      GBK 16-bit Simplified Chinese    -- 我们中国大陆只能选它了...
  ZHT16HKSCS      MS Windows Code Page 950 with Hong Kong Supplementary Character Set
  ZHT16MSWIN950   MS Windows Code Page 950 Traditional Chinese
  ZHT32EUC      EUC 32-bit Traditional Chinese
  AL32UTF8      Unicode 4.0 UTF-8 Universal character set    --实验时,使用的是字符集,证明可以存储 ZHS16GBK 以外的字符集
  二、操作系统字符集(用来显示、解码/编码与oracle交互的编码格式)
  linux命令下:
  locale -a                -- 查看操作系统支持哪些字符集;
  locale charmap         -- 看操作系统的字符解码是哪种方式;
  export LANG=zh_CN.UTF-8-- 设置操作系统 为 中文,utf8编码方式

页: [1]
查看完整版本: Oracle操作系统和支持-字符集