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

Issue displaying: Spanish accented characters #24

Open
mycloudvip opened this issue Aug 11, 2023 · 1 comment
Open

Issue displaying: Spanish accented characters #24

mycloudvip opened this issue Aug 11, 2023 · 1 comment

Comments

@mycloudvip
Copy link

please see attached image:

Question: Is there a way to set UTF-8 for all rendered text from ChatGPT?

Thanks

IMG_3685

@JohnF17
Copy link
Contributor

JohnF17 commented Aug 19, 2023

Hey @mycloudvip ,The two things that come to my mind is

  1. Font Support: Ensure that the font you're using for your text supports the Spanish accented characters. Some fonts might not include all the necessary characters. You might want to use a font that is known to support a wide range of characters.
    and
  2. Locale and Encoding: Flutter automatically handles the locale and encoding of text. However, you can make sure that your app's locale is set correctly by using the MaterialApp's locale property. For Spanish, you can use const Locale('es', 'ES').
MaterialApp(
  locale: const Locale('es', 'ES'), // or just add the locale to the availableLocales list in the MaterialApp
  // ... other properties
)

I personally don't think this is the package's issue (As its very basic flutter code inside), so after you make sure you have done checked the 2 requirements above and those don't work i want you to confirm if the characters are rendered well on all screens, try debugPrint(theMessage) and check if it prints the message on the debug console correct or not.

If it does print well then i suggest you try providing a textstyle to the bubble widget OR wrapping the bubbleWidget in a DefaultTextStyle Widget and provide a textstyle and if it doesn't well then you know where the errors are comming from.
Cheers! ✌️

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

No branches or pull requests

2 participants