为什么不使用base128? [英] Why is base128 not used?

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

问题描述

为什么只有base64而不是base128用于在网络上传输二进制数据? ASCII字符集具有128个字符,理论上可以表示以128为基数,但是在大多数情况下,仅使用base64,而不使用base128.

Why is only base64 instead of base128 used to transmit binary data on the web? The ASCII character set has 128 characters which in theory could represent base 128, but only base64 but not base128 is used in most cases.

推荐答案

问题是ASCII字符集中的至少32个字符是控制字符",可以由接收终端解释.例如,有BEL(铃)字符使接收终端发出提示音.有SOT(传输开始)和EOT(传输结束)字符,它们的作用恰如其名.并且不要忘记CR和LF字符,它们在将数据结构序列化/展平到流中时可能具有特殊的含义.

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.

Adob​​e创建了 Base85编码,以便在ASCII字符集中使用更多字符,但是AFAIK是受专利保护.

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天全站免登陆