Closed mneumann closed 1 year ago
I like this idea, but I think we should go further and make it able to format any Unicode codepoint, including those beyond the ASCII range. So you can take any codepoint value and put it into a string.
Thus we'd probably name it something like .format.unicode
instead of .format.ascii
, and it would use the existing _UTF8Encoder.encode
function that we already have in the core
library.
What do you think?
Ideally, we'd have a separate
Char
orRune
type.Use case: Display Postgres frame types, e.g. 'F' as 'F' and not as 70.