-
Notifications
You must be signed in to change notification settings - Fork 17
Support Unicode? #27
Comments
Hello, Unicode or just UTF-8 is a little nightmare. |
@tst2005 Thank you for that. I will try to use your code and see if I can solve my problem. In the context of Urn, what I would love to see is the same thing that was done for the bit library except for the utf8 library; an Urn implementation that will be used if the utf8 library (from Lua 5.3) isn't available. Might be a ton to ask for but it would provide VM agnosticism and the potential performance benefit if Lua's utf8 library is available. |
@sci4me My TODO for my lua-utf8 is :
I'm also working on a solution to have an "universal bit library",
|
So this is a longshot and might not be easy due to Lua, but, I am trying to write a program that parses text files that are made up of, among other things, Greek letters. I had to write a hack to allow myself to parse λs by reading two bytes out of a string... but... I can't write hacks for the general case.
Is it possible to make it effortless to use Unicode characters in strings? Or at least, if not effortless, easy? I honestly have no knowledge of what would need to be done to support this.
For reference, this is the project I've been working on: https://git.sci4me.com/sci4me/lambda_calculus
EDIT: Really I just need to use the UTF-8 library, so, ... my concern with that is that it's not supported on LuaJIT. (And I have no idea how to do it and it seems nontrivial to change all of my code to support it but idk)
The text was updated successfully, but these errors were encountered: