Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support Chinese #68

Closed
7449 opened this issue Apr 25, 2018 · 4 comments
Closed

Does not support Chinese #68

7449 opened this issue Apr 25, 2018 · 4 comments
Labels

Comments

@7449
Copy link

7449 commented Apr 25, 2018

English is normal, I got an error when I entered Chinese

english

new WebviewScaffold(
        url: new Uri.dataFromString(
                '<html><body>hello</body></html>',
                mimeType: 'text/html')
            .toString())

chinese

new WebviewScaffold(
        url: new Uri.dataFromString(
                '<html><body>你好</body></html>',
                mimeType: 'text/html')
            .toString())

Hope to get a reply

thanks

@lejard-h lejard-h added the bug label Apr 25, 2018
@lejard-h
Copy link
Collaborator

lejard-h commented Apr 25, 2018

did you try to run a custom server in your app, as describe here #23 ?

@7449
Copy link
Author

7449 commented Apr 25, 2018

my data is obtained from an api, this is related to the local server?

@jparound30
Copy link
Contributor

this is not a bug.

should specify the encoding parameter.

import 'dart:convert';

new Uri.dataFromString(
                  '<html><body>你好</body></html>',
                  mimeType: 'text/html',
                  encoding: utf8)
                  .toString())

@7449
Copy link
Author

7449 commented Apr 27, 2018

thanks,this is not a bug,It to be my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants