Closed anson0370 closed 5 years ago
Hi thanks for pointing this out. Most of the widgets were just rewritten and it seems that support for chinese characters was overlooked. The widgets should be stable enough now that PRs are very much welcome though!
It also affected German Umlauts and possible other Unicode characters. Now it's fixed.
The official example
_example/paragraph.go
can reproduce this issue. Run this example can cause an 'index out of range'.I did some debug and figured out the problem:
So I fixed it like this:
No more exceptions but the display was still weird. The string "你好,世界。" would display like "你,世". I did more debug and caught the issue again:
But there are many other code like above at other widgets like list, table, etc... And looks like you are working on refactor this lib. So I didn't make a PR for it.
Thx. And sorry for my english. 😄