Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant send some letter from lua to godot #25

Closed
cenullum opened this issue Aug 14, 2021 · 4 comments
Closed

cant send some letter from lua to godot #25

cenullum opened this issue Aug 14, 2021 · 4 comments

Comments

@cenullum
Copy link
Member

cenullum commented Aug 14, 2021

image

letters here: ııığşüçö
and somehow lowercase letter of " I " turns to number one

log function is just exposed func to print to console and in game label

@Trey2k
Copy link
Member

Trey2k commented Aug 16, 2021

So this would be because LUA is written in C which uses ASCII and 'ııığşüçö' is not valid ASCII text so it dose not know what to do with it. Ill try to think of a way around this but not sure if I will find one.

@cenullum
Copy link
Member Author

What version do you use? I think in lua 5.3 they added utf8 however I'm not sure does it require anything else. I guess there must be long boring functions and modder will have to specify which language do they use or maybe you can find a way to hide the functions by making them builtin somehow I dont know.

@Trey2k
Copy link
Member

Trey2k commented Aug 18, 2021

Looks like there is a utf8 lib in the standard library for lua. I'll mess around with it

@Trey2k Trey2k added this to To do in v2 for godot v4 Apr 16, 2022
@Trey2k
Copy link
Member

Trey2k commented Apr 17, 2022

This will be resolved with the addition of bind_libs in v2. added in e205c0b

@Trey2k Trey2k closed this as completed Apr 17, 2022
@Trey2k Trey2k moved this from To do to Done in v2 for godot v4 Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants