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

Non-Breaking space (" ") prints as "[NBSP]" from command block (incorrectly), but from chat it prints as " " (correctly)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b
    • Fix Version/s: Minecraft 1.12.1
    • Environment:
      MacOSX 10.11.5 (15F34)
      Intel HD Graphics 5000 1536 MB
    • Confirmation Status:
      Confirmed

      Description

      Execute this command from chat, then from command block.

      /title @p actionbar {"text":"3   non-breaking-spaces"}

      or this one:

      /tellraw @p {"text":"3   non-breaking-spaces"}

      or any other text related JSON command even nested in execute:

      /execute @p ~ ~ ~ /tellraw @p {"text":"3   non-breaking-spaces"}

      Expected:

      • same output:
        3   non-breaking-spaces

      Actual:

      • different output:
        CHAT:
        3   non-breaking-spaces

        COMMAND BLOCK:

        3non-breaking-spaces

      Possible cause:

      • The way text is parsed and formatted from chat is different from command blocks.

      ( is used to represent the 'bugged' [nbsp] character)

        Attachments

        1. 2016-08-13_11.11.02.png
          121 kB
          Melvin S.
        2. 2016-08-13_11.11.12.png
          67 kB
          Melvin S.
        3. 2016-08-13_11.11.20.png
          101 kB
          Melvin S.

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              m124367 Melvin S.
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: