Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-133426

Unicode Characters cause JSONReader error

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Minecraft 1.13-pre8
    • None
    • Java 1.8
    • Unconfirmed

    Description

      When trying to enter unicode characters as part of a command the game returns an error. Attempted to enter many different characters and this error now comes up.  Was not present in pre7. This is returned when trying to run a function that uses a unicode character:

       

      [09:31:10] [ForkJoinPool.commonPool-worker-2/ERROR]: Couldn't load function at dmz:functions/scoreboard_add.mcfunction
      java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 102: Invalid chat component: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ at position 37: ...ana dummy <--[HERE]
              at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:1.8.0_172]
              at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) [?:1.8.0_172]
              at java.util.concurrent.CompletableFuture.uniApply(Unknown Source) [?:1.8.0_172]
              at java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source) [?:1.8.0_172]
              at java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source) [?:1.8.0_172]
              at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_172]
              at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_172]
              at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_172]
              at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_172]
      Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 102: Invalid chat component: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ at position 37: ...ana dummy <--[HERE]
              at br.a(SourceFile:61) ~[server.jar:?]
              at pp.a(SourceFile:147) ~[server.jar:?]
              ... 7 more

       

      Tried a bunch of different characters.  This is what the line in question look like.

       

      scoreboard objectives add Mana dummy ƒ
      

       
      Happens with all special characters I've tried since updating to pre8.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              k0nker Blake Zimmerman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: