人为什么不使用base128? [英] Why don't people use base128?

查看:184
本文介绍了人为什么不使用base128?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么每个人都使用base 64来传输二进制数据?我要求,因为ASCII字符集有128个字符,理论上可以代表基数128 ...

解决方案

问题是ASCII字符集的至少32个字符是可由接收终端解释的控制字符。例如,有BEL(铃声)字符使接收终端铃声。有SOT(开始传输)和EOT(传输结束)字符执行正好他们的名字所暗示的。并且不要忘记字符CR和LF,其中可以在数据结构如何序列化/平展到流中具有特殊的含义。



Adobe创建了 Base85编码以在ASCII字符集中使用更多字符,但AFAIK受到专利保护。


Why is everybody using base 64 to transmit binary data on the web? I ask that because the ASCII character set has 128 characters which in theory could represent base 128...

解决方案

The problem is that at least 32 characters of the ASCII character set are 'control characters' which may be interpreted by the receiving terminal. E.g., there's the BEL (bell) character that makes the receiving terminal chime. There's the SOT (Start Of Transmission) and EOT (End Of Transmission) characters which performs exactly what their names imply. And don't forget the characters CR and LF, which may have special meanings in how data structures are serialized/flattened into a stream.

Adobe created the Base85 encoding to use more characters in the ASCII character set, but AFAIK it's protected by patents.

这篇关于人为什么不使用base128?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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