Skip to content

string is not well-formed UTF-16 #21

@ghost

Description

Describe the bug

i am using this widget to render ai generated text and i am getting mentioned error when any emoji is generated by ai in response so this widget generate error Invalid argument(s): string is not well-formed UTF-16

To Reproduce

Steps to reproduce the behavior:

  1. Setup:
    • Flutter version: [e.g., 2.5.3]
    • Dart version: [e.g., 2.14.4]
    • Device/Emulator: [e.g., iPhone 12, Pixel 4, etc.]
    • Operating System: [e.g., iOS 14.5, Android 11]
  2. Steps:
    • Go to '...'
    • Click on '....'
    • Scroll down to '....'
    • See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots/Video

Add screenshots or a video to help explain your problem.

Flutter Doctor Output

Please paste the output of flutter doctor -v here.

Context

Add any other context about the problem here, including the full code for the activity/page where the issue occurs.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions