【发布时间】:2019-03-25 09:16:16
【问题描述】:
为什么符号 '????' 的 unicode 值在 nodejs 和 python 中是不同的。
nodejs (8.11 版) 给出 "????".charCodeAt(0) 输出为 55357
其中作为 python(2.7 或 3.6 版) ord('????'[0]) 输出为 128515
根据https://www.fileformat.info/info/unicode/char/1f603/index.htm 128515 是正确的。 那么为什么 nodejs 给出不同的数字呢?
【问题讨论】: