Arabic letters not rendering in string print
Amazing work team,
I tried adding arabic letters in the string and it printed garbage. (screenshot attached)
Code block in case you want to reproduce or test for
func init {
// oop style method call
"hello moonbit\n".print()
"مرحبا moonbit".print()
}
output should look like the input in terms of drawing :)
Thanks for your feedback, Moonbit currently supports Latin-1, CJK characters, Basic emoji. We will support more character sets in the future.
Thanks for your feedback, Moonbit currently supports Latin-1, CJK characters, Basic emoji. We will support more character sets in the future.
This is about string printing, not identifiers. We may need to modify the runtime. cc @lijunchen
It seems that all Unicode character (non-ASCII) print error.
func init {
"test 666 测试".print();
}
This can reproduce here https://try.moonbitlang.com/
There are still some issues but basic printing should work now
Thank you, it works !
The current implementation decode utf-8 bytes (of whole line) at LF (\n) char.
So you should print \n (or use println()) for it to work.