du7133 2014-03-25 20:23
浏览 58
已采纳

这个扩展ASCII的一部分是什么编码?

What encoding is this extended ASCII a part of:

Extended ASCII

I always thought this was CP-1252, but as I was dealing with CP-1252 strings today, I realized that they are different. This is linked from the PHP chr page, but if I output the extended ASCII characters:

for ($i = 128; $i < 256; $i++) echo chr($i);

I get this:

€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ

And if it isn't a supported PHP encoding, then it shouldn't be linked from the PHP website.

  • 写回答

1条回答 默认 最新

  • douhuang3833 2014-03-25 20:45
    关注

    It appears to come straight from Code Page 437.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?