欧元符号的十六进制表示 [英] Hex representation of Euro Symbol €

查看:362
本文介绍了欧元符号的十六进制表示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi

我使用XVI32(十六进制编辑器)获取欧元符号的十六进制表示形式,它给出的值为80.

另一个网站: http://www.string-functions.com/string-hex.aspx 也是这样。

我不能理解为什么十六进制表示是80而不是0x20AC。
这个0X80在十进制中给出128,如果我使用Alt + 0128它实际上产生了欧元符号。

Hi
I was using XVI32 (Hex Editor) to get the hex representation of the Euro symbol and it gives me the value as 80.
Another site: http://www.string-functions.com/string-hex.aspx does the same.
I am not able to understand why the hex representation is 80 instead of 0x20AC. This 0X80 gives 128 in decimal and if I use Alt+0128 it actually produces the Euro symbol.

可能有人会注意到什么是逻辑

Could somebody throw some light on what could be the logic behind this conversion from string to hex conversion ?

感谢

推荐答案

字符编码(或字符集)将字符映射到字节值序列。您的字符集是 windows-1252 ,它将欧元符号作为单个十六进制字节0x80(十进制为128,如Oded所说)。每个字符集编码非ASCII字符不同;对于0x80,没有根本的正确或错误。

A character encoding (or charset) maps characters to a sequence of byte values. Your charset is windows-1252, which encodes the euro symbol as the single hex byte 0x80 (which is 128 in decimal, as Oded says). Each charset encodes non-ASCII characters differenly; there's nothing fundamentally "right" or "wrong" about that 0x80.

这篇关于欧元符号的十六进制表示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆