3 ms·
when would you ever use this? if you ever transmit unicode data, you have to encode it first. So one would probably encode this as UTF-8, which is binary. how a
by AndyKelley 11y ago
when would you ever use this? if you ever transmit unicode data, you have to encode it first. So one would probably encode this as UTF-8, which is binary. how about skip the middleman and transmit the binary directly?
- meepmorp 11y agoIt's explained in the linked post - people wanted to share HATETRIS replays through Twitter, and this helps that happen.
- colanderman 11y agoThis makes sense only if (a) your transport medium will only transfer graphical Unicode code points, and (b) you are interested in minimizing code point count as opposed to byte count. If (a) is not true, you are better off just using binary as you state. If (b) is not true, you are better off using Base64 if the underlying encoding is ASCII-compatible (e.g. ASCII, ISO-8859, or UTF-8), or Base4096 if the underlying encoding is UTF-16. In the case of tweets, both (a) and (b) are true, making this somewhat worthwhile.