博客
关于我
对于 Shift-JIS 编码的理解 (win10中 查看 Shift-JIS 编码 コード)
阅读量:753 次
发布时间:2019-03-23

本文共 538 字,大约阅读时间需要 1 分钟。

Shift_JIS-2004 是 JIS X 0213 中 Shift_JIS 编码的版本。它是 Shift_JIS 编码的超集。该编码将 JIS X 0213 的双字节代码转换为 Shift_JIS 格式。

字符集划分

  • 0x20-0x7F:JIS X 0201 拉丁字符集(适用于日本的 ASCII 统一码)
  • 0xA1-0xDF:JIS X 0201 ひらがな字符集(单字节形式)
  • 0x81-0x9F 和 0xE0-0xFC:双字节字符的第一字节

Shift_JIS 的命名背景

Shift_JIS 的命名有以下两种解释:

  • 个人理解

    • 半角假名使用单字节存储。
    • 其他日文字字符使用双字节存储。
    • 命名意为“换挡 JIS”,类似于自动变速档位。
  • 另一种解释:

    • 当两个字节用于存储一个字符时,需避开原本用于半角假名的 0xA1-0xDF 区间。
    • Shift_JIS 编码中,双字节字符的第一字节使用 0x81-0x9F 和 0xE0-0xEF 区间。
    • 第二字节使用 0x40-0x7E 和 0x80-0xFC 区间。
    • 用户定义的区间中,第一字节使用 0xF0-0xFC,第二字节同上。

  • Shift_JIS-2004 在 Windows 10 中也可以通过内置编码查看工具进行验证。

    转载地址:http://wdwzk.baihongyu.com/

    你可能感兴趣的文章
    npm和yarn的使用对比
    查看>>
    npm如何清空缓存并重新打包?
    查看>>
    npm学习(十一)之package-lock.json
    查看>>
    npm安装 出现 npm ERR! code ETIMEDOUT npm ERR! syscall connect npm ERR! errno ETIMEDOUT npm ERR! 解决方法
    查看>>
    npm安装crypto-js 如何安装crypto-js, python爬虫安装加解密插件 找不到模块crypto-js python报错解决丢失crypto-js模块
    查看>>
    npm安装教程
    查看>>
    npm报错Cannot find module ‘webpack‘ Require stack
    查看>>
    npm报错Failed at the node-sass@4.14.1 postinstall script
    查看>>
    npm报错fatal: Could not read from remote repository
    查看>>
    npm报错File to import not found or unreadable: @/assets/styles/global.scss.
    查看>>
    npm报错TypeError: this.getOptions is not a function
    查看>>
    npm报错unable to access ‘https://github.com/sohee-lee7/Squire.git/‘
    查看>>
    npm淘宝镜像过期npm ERR! request to https://registry.npm.taobao.org/vuex failed, reason: certificate has ex
    查看>>
    npm版本过高问题
    查看>>
    npm的“--force“和“--legacy-peer-deps“参数
    查看>>
    npm的安装和更新---npm工作笔记002
    查看>>
    npm的常用操作---npm工作笔记003
    查看>>
    npm的常用配置项---npm工作笔记004
    查看>>
    npm的问题:config global `--global`, `--local` are deprecated. Use `--location=global` instead 的解决办法
    查看>>
    npm编译报错You may need an additional loader to handle the result of these loaders
    查看>>