ilteoood / flutter_i18n

I18n made easy, for Flutter!
MIT License
217 stars 57 forks source link

Non-ASCII characters are not displayed correctly #229

Open chamartt opened 3 weeks ago

chamartt commented 3 weeks ago

Hi,

Since Flutter/Pods/Pub updates, all our non-ascii characters are not displayed correctly anymore.

For exemple, emojis are not displayed anymore and accented characters like "é" are displayed as "é".

We are using network json files, which are working correctly for our production release (which is with the non up-to-date Flutter version)

Files have not been updated, and are in UTF-8 without BOM.

We didn't touch the plugin initilization which is:

final FlutterI18nDelegate flutterI18nDelegate = FlutterI18nDelegate( translationLoader: NetworkFileTranslationLoader( useCountryCode: false, fallbackFile: 'fr', forcedLocale: locale, baseUri: Uri.https([OUR SERVER], "translations"), decodeStrategies: [JsonDecodeStrategy()], ), );

It look like encoding issue, but I don't know how to fix it.

Thanks in advance for your help.