mojira.dev
MC-124200

§ is disabled in lang.json files

While updating to 18w02a from 18w01a, the lang files were replaced in the .json format. While updating/testing my resource pack. I figured out that that "§" is always shown. I normally use this code to show on death screens. This is the same code I used for 1.12.2, 18w01a, and 18w02a: §4§k8§r§4§lYou're Done!§k8

Is this intentional?

Linked issues

Attachments

Comments 9

Yeah, that's an encoding error; some encodings corrupt § into different things (that often happen to actually have a different § in them, though). Though it's weird that it's being corrupted into something different each time in each version...

The reporter is using §k to get obfuscated text.

... oops. Ok, yeah, that explains the other random characters...

Yeah, this is a case of § being corrupted into §, and as such a duplicate of MC-124179.

One thing to note is that § is deprecated in favor of chat components, but I don't know if there's a replacement for it in language files.

I was talking about § actually being shown, not the obfuscated text.
It's only shown in 18w02a, not the other versions.

I don't see an § actually being shown in those images, though? Just the Â?

[media]

is what .json thinks is §

It's the only character not obfuscated.

Yeah, what's happening is that the file is being misread as if § were §. This turns your example into §4§k8§r§4§lYou're Done!§k8 which should give you this type of output. It doesn't get obfuscated because it's before the §k (At least I think that's how it'd get misencoded, I might be wrong).

Makzevu

(Unassigned)

Unconfirmed

Minecraft 18w02a

Retrieved