Flutter Linux Build Encoding issue

50 Views Asked by At

When building an linux app using flutter build linux. It started to having an issue with displaying non-latin characters.

flutter doctor -v

This image provides some detail on the issue I'm encountering. All the squares are asian characters (Japanese, Chinese, Korean) Issue displaying non-latin characters

Can someone please advise

tried different versions. Built to different environment(android, ios, web, and macos), no issue displaying characters, only on linux

1

There are 1 best solutions below

2
linux-coding649 On

I think that you would want to reconfigure locales. I don't exactly know what flavour of Linux Flutter is, but there should be some way on installing/reconfiguring locales.

Once you have found out how, for the locale, you want to select en_US or en_UK (depending on which country you are in) with (Make Sure You Do This!) UTF_8. UTF_8 allows for your system to use international characters.

Afterwards, once locales has been configured, international characters should work!

I know that it works in Debian, so it should work similarly on your Linux system.

(You also might want to move/copy your question to SuperUser (superuser.com) because StackOverflow is for programming questions and SuperUser is for Linux and technical administrator questions)