Base64 decode data: Difference between revisions

Content added Content deleted
(Add ed example)
(→‎{{header|Ed}}: Mention the 7-bit text chars restriction.)
Line 750: Line 750:


This solution essentially hardcodes both Base64 chars and the byte->ASCII transformation, because [[Ed]] has no way to transform things other than text substitution. Still, the implementation is less than 200 lines long, which is a pretty compact script.
This solution essentially hardcodes both Base64 chars and the byte->ASCII transformation, because [[Ed]] has no way to transform things other than text substitution. Still, the implementation is less than 200 lines long, which is a pretty compact script.

Also note that this only processes graphical chars of 7-bit ASCII—ed doesn't explicitly work with control chars. And going beyond 127 is system-dependent, so here we are.


<syntaxhighlight>
<syntaxhighlight>