Log In  


I am trying to store some binary data as a string in lua, like so:

local data="ã.ç.G W.§.Ó.×..."

but after saving, all common ascii characters in this string get moved to lowercase:

local data="ã.ç.g w.§.Ó.×..." --(note: G and W are now g and w)

Is there anyway to prevent this?


P#47004 2017-12-04 02:08 ( Edited 2018-01-18 22:00)

Here's a discussion on base64, including code:


Overkill finds that base64 is plausible but doesn't improve the compressed char count over hex encoding.

There is no way to prevent the automatic lowercasing when loading from .p8. It's a feature for Pico-8 devs that use external editors, and a worthy one. P8's text encoding is proprietary to begin with, so staying within the printable char set is always going to be important.

See also today's release that changes the glyph encoding in .p8 files, and also adds a notification for the automatic lowercasing behavior.

P#47034 2017-12-04 13:15 ( Edited 2017-12-04 18:22)

That's too bad. Be nice if string literals were ignored or something:

local data = [[ã.ç.G W.§.Ó.×...]]

P#47056 2017-12-04 16:38 ( Edited 2017-12-04 21:38)

I agree! It would be great if text strings were ignored.

P#48326 2018-01-18 17:00 ( Edited 2018-01-18 22:00)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-06-05 15:28 | 0.010s | 2097k | Q:18