Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Error: Could not decode "blablobli" with "UTF-8" encoding. Editing not possible.

Error: Could not decode "blablobli" with "UTF-8" encoding. Editing not possible.

Scheduled Pinned Locked Moved Qt Creator and other tools
editing not posutf-8qt creatorqtcreatorbug-14suggestion for
7 Posts 2 Posters 5.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    koahnig
    wrote on 11 Jun 2015, 13:30 last edited by koahnig
    #1

    when opening a special file in Qt creator I get the message "Error: Could not decode "blablobli" with "UTF-8" encoding. Editing not possible. "
    The reason is clear that there is somewhere a character which is not conform with UTF-8. Typically Qt creator is not happy about German Umlaute and I change them. Unfortunately, this time it is another character. The file is a bit big for manual line by line inspection.

    Has anyone an idea how to find the character for inspection?

    Vote the answer(s) that helped you to solve your issue(s)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 Jun 2015, 22:36 last edited by
      #2

      Hi,

      Maybe this can help

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply 12 Jun 2015, 09:00
      0
      • S SGaist
        11 Jun 2015, 22:36

        Hi,

        Maybe this can help

        K Offline
        K Offline
        koahnig
        wrote on 12 Jun 2015, 09:00 last edited by
        #3

        @SGaist

        Thanks for suggestion. Unfortunately not. I have tried to use the regexp in Qt creator, but the problem might be the "translation" done through choosing a character set. The find allows searching with regexp and one assemble a simple search with all legal characters (eg. [A-z] and add also punctuation).
        The first problem starts with caret which indicates also start of line. However, also obvious wrong characters are not found.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 18 Jun 2015, 22:50 last edited by
          #4

          Did you try with sed ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          K 1 Reply Last reply 19 Jun 2015, 06:41
          0
          • S SGaist
            18 Jun 2015, 22:50

            Did you try with sed ?

            K Offline
            K Offline
            koahnig
            wrote on 19 Jun 2015, 06:41 last edited by
            #5

            @SGaist
            No.
            Being a "windows boy" I had to ask google which of the numerous editor solutions this is on linux ;)

            I have solved it for my case. It is tedious, but the couple of wrong bytes have been found by trial and error.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on 19 Jun 2015, 07:41 last edited by
              #6

              I have added a suggestion to JIRA.

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 19 Jun 2015, 22:36 last edited by
                #7

                Good idea, voted !

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0

                5/7

                19 Jun 2015, 06:41

                • Login

                • Login or register to search.
                5 out of 7
                • First post
                  5/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved