Skip to content

Flutter kindly asked me to report this error: Bad UTF-8 encoding (U+FFFD; REPLACEMENT CHARACTER) found while decoding string: #117952

Closed

Description

@DatabertDuck

The following is the run window output:

This text will be displayed in red
Finished with error: Bad UTF-8 encoding (U+FFFD; REPLACEMENT CHARACTER) found while decoding string: Text before and after the index: >>>nschauen. Bitte nicht lachen �<<<
. The Flutter team would greatly appreciate if you could file a bug explaining exactly what you were doing when this happened:
https://github.com/flutter/flutter/issues/new/choose
The source bytes were:
[84, 101, 120, 116, 32, 98, 101, 102, 111, 114, 101, 32, 97, 110, 100, 32, 97, 102, 116, 101, 114, 32, 116, 104, 101, 32, 105, 110, 100, 101, 120, 58, 32, 62, 62, 62, 110, 115, 99, 104, 97, 117, 101, 110, 46, 32, 66, 105, 116, 116, 101, 32, 110, 105, 99, 104, 116, 32, 108, 97, 99, 104, 101, 110, 32, 239, 191, 189, 60, 60, 60, 10]

I was selecting random words (tokens) in a Corpus (String variable, containing a chat conversation)

The excerpt above:
"Text before and after the index: >>>nschauen. Bitte nicht lachen �<<<"
is created with the following print statement:
print("Text before and after the index: >>>${_text.substring(_indexOfWordInOriginalTextBody - 10, _indexOfWordInOriginalTextBody+20)}<<<");

The original line looks like this:
"Essen Gilmore Girls anschauen. Bitte nicht lachen 😜"

Activity

  1. changed the title [-]Flutter kindly asked me to report this error[/-] [+]Flutter kindly asked me to report this error: Bad UTF-8 encoding (U+FFFD; REPLACEMENT CHARACTER) found while decoding string:[/+] on Jan 4, 2023
  2. danagbemava-nc commented on Jan 4, 2023

    @danagbemava-nc
    Member

    Hi @DatabertDuck,

    Can you please provide your flutter doctor -v and flutter run --verbose logs, and a minimal complete reproducible code sample?

    Please also provide the necessary steps to reproduce.

    Thank you

  3. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jan 4, 2023
  4. DatabertDuck commented on Jan 4, 2023

    @DatabertDuck
    Author

    Hey @danagbemava-nc,
    thanks for the quick reply. I have moved on and overwritten the code that I had. I don't necessarily care so much about it anyway. Sorry, this is my first Issue opening ever. So I wasn't expecting to be able to go back and reproduce it. Thought I just might report, because the prompt asked me to.

    I am aware though, that there is a version control system in place. Just not sure, if this is already running in the background of my machine. Definitely not with github yet though. How important is fixing this issue for you? Otherwise you may as well close the ticket. ;)

    Best regards,
    Jakob

  5. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jan 4, 2023
  6. danagbemava-nc commented on Jan 4, 2023

    @danagbemava-nc
    Member

    How important is fixing this issue for you?

    In an ideal world, we'd like to fix any issues that are reported (if possible), which is why the reproduction case is required.

    You can always file a new issue with the steps to repro if this comes up again so for now, I'll be closing this.

    Thank you

  7. added
    r: solvedIssue is closed as solved
    and removed
    in triagePresently being triaged by the triage team
    on Jan 4, 2023
  8. github-actions commented on Mar 4, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  9. locked as resolved and limited conversation to collaborators on Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: solvedIssue is closed as solved

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions