-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add GUILabel (colour code + currency icon support) #251
Conversation
I don't know if you ever plan on supporting unicode text, but if you are thinking about it |
He needs to use string_view, not char, we already support utf8 and the conversion happens all the way back in the dataloader. |
Ah, so then it is only working by accident. |
I imagine that embedding strings like |
same also holds for |
Well Godot strings are inherently utf8, they'll try to read it as ISO 8859-1 if you just shove the single byte values beyond ASCII in without the utf functions, however Godot strings themselves store everything as utf8 and all strings made in GDScript are utf8. And in my experience so far no compiler has caused any issues storing utf8 in string_view. (the closest I think of is the GA's Ubuntu distribution of GCC would hang when trying to store a specific utf8 encoded multi-byte character in our testing platform to the dataloader, but wouldn't have any issue storing it in the normal path of the program, it works fine when used, but the test somehow borks GCC when non-ascii characters were there) |
@schombert thanks for the advice, I was using Windows-1252 character codes from previous Vic2 localisation analysis code, changed it all now to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works on Linux
No description provided.