Skip to content

[web] rootBundle.loadString can not recognize Chinese name file #50333

@asjqkkkk

Description

@asjqkkkk

flutter doctor

[✓] Flutter (Channel dev, v1.15.1, on Mac OS X 10.15.3 19D76, locale zh-Hans-CN)
 
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.40.1)
[✓] Connected device (2 available)

issue description

image

image

when I used rootBundle.loadString to load a Chinese markdown file, it throwed this error

and in flutter dev 1.14.6, it works fine in debug mode(release mode still has the issue)

I'm using flutter dev v1.15.1, this issue is still exsits.

This is my web application created by flutter web: My Blog

now I use another method to parse markdown files, but this is not elegant enough。

And this issue is familiar to #46163; not only the web has this problem, but also the mobile

Metadata

Metadata

Labels

a: assetsPackaging, accessing, or using assetsa: internationalizationSupporting other languages or locales. (aka i18n)frameworkflutter/packages/flutter repository. See also f: labels.platform-webWeb applications specifically

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions