Page 2 of 2
Re: A Lua code editor
Posted: Wed Jul 29, 2020 12:29 pm
by pgimeno
Giovifav wrote: ↑Wed Jul 29, 2020 11:56 am
My idea was to replace the utf8 char with a similar one ASCII compatible, for example ü become u, ã = a.
Well, that's not so easy, it needs a replacement table which every possible character to convert and the translation to ASCII.
Giovifav wrote: ↑Wed Jul 29, 2020 11:56 am
Off topic:
pgimeno I stumble across your code multiple times, I really like your work!
Thanks!
Re: A Lua code editor
Posted: Fri Sep 25, 2020 4:05 pm
by josip
@zorg this editor is actively used in lövr, which is a different codebase from löve and doesn't currently include utf-8 library. I'll look into supporting utf-8 at some point.
Thanks for the hint @pgimeno. I'm going to use that line to sanitize the input.