A magic character \128 in CC: Tweaked character encoding #2452
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
ComputerCraft uses latin1 + some extra things (see this image for a breakdown). However, nobody actually writes files using that encoding — I'd just stick to parsing ASCII.
That's a non-breaking space. Lua patterns are not locale/charset aware — they only work with ASCII characters. |
Beta Was this translation helpful? Give feedback.
-
|
If I understood correctly, 0x80 is a empty char for drawing in CC:T and 0xa0 is a non-breaking space just for text? Also, thanks for normal tables of CC:T charset |
Beta Was this translation helpful? Give feedback.



So, CC font is kinda custom combination of few different charsets, and some specific stuff made just for CC.
As you can see, \128 character (or 0x80 in this chart) is part of 2 rows of so called drawing characters, that are used to draw pixel-like images using text. It is not considered a white space, but "all 6 pixels of background color", that is why
%spattern is not hitting it.Here's my favorite image showing which charset what part of it comes from: