mojira.dev
MC-117080

Entering "\u" into a sign (JSON) won't work.

Run this command

/setblock ~ ~ ~ standing_sign 0 replace {Text2:"{\"text\":\"\u00a72Green\u00a7r\"}"}

will not work because \u isn't escaped properly. This can't be a works as intended, as it works in 1.11.2 (if it is, you guys should seriously consider re-adding it). The result is supposed to show green text using a section sign (I do know how to use JSON text in a sign, it is a long story why I need a section sign specifically), but returns an error as the \u isn't escaped properly.

Linked issues

Comments 1

New NBT parsing, you need to double-escape certain characters so the escape gets passed to the JSON:

/setblock ~ ~ ~ standing_sign default replace {Text2:"{\"text\":\"\\u00a72Green\\u00a7r\"}"}

TheMuffinPony

(Unassigned)

Unconfirmed

Minecraft 17w18b

Retrieved