code_field
code_field copied to clipboard
[Severe] ***ALL*** non-ASCII codes cause `string is not well-formed UTF-16` errors
If emojis were in a document and loaded into the editor, it results in Invalid argument(s): string is not well-formed UTF-16
Is there some way to fix this and actually render these emojis?
@BertrandBev This is a serious issue with this package - attempting to load (or even just type) emojis will cause a malformed utf16 error due to... something in your code.
The stacktrace is completely unhelpful too.
CORRECTION! attempting to input a Japanese character (as an example) has the same exact issue. what the actual hell
Did you end up finding a fix?
@BertrandBev
Did you end up finding a fix?
My fix was switching to flutter_code_editor
which has its own issues, but at least i can use all characters properly now...
attempting to find the issue was impossible for me since i had no way of knowing how to trace it down.
perhaps compare both packages and see where the difference lies? i dont know
@TekExplorer @BertrandBev https://github.com/BertrandBev/code_field/pull/97/files This should fix it.
Note: I have this forked and on another repo, but made this patch via GitHubs web-based tooling, so you may want to pull down and test prior to merging.
I believe this was the fix for me when experiencing this issue 👍🏼