Get the latest tech news

Bytes as Braille


UPDATE: Now on Github with more stuff including a neat input function Since Python3, I have been working with bytestrings that sometimes decode as ASCII or UTF strings ; the environment this lives in is mixed, as in some strings are expected to decode while some are are expected to not decode. Displaying those string as-is is not convenient, as quite a few Unicode symbols will not render correctly : since I work with all sort of human languages these are frequent so I wrote a very short function that would try to decode my bytestring and return “bytes” if it wouldn’t decode.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of bytes

bytes

Photo of Braille

Braille

Related news:

News photo

1 kilobyte is precisely 1000 bytes?

News photo

Show HN: Ever wanted to look at yourself in Braille?

News photo

How to store a chess position in 26 bytes (2022)