mojira.dev
MC-147109

Unicode in .mcfunction file is not possible (For data packs/functions)

Unicode totally works when I write it in Minecraft itself.

But when I start using Unicode in a .mcfunction file for a data pack/function for example in a /tellraw command it will show me an error Message (Picture 1 [In German]) because the ANSI format doesn't support Unicode. But when I save my .mcfunction file in the Unicode format or in the UTF-8 format the file stops working completely.

Greetings

Linked issues

Attachments

Comments 4

Can confirm this for the latest snapshot 19w14b

Actually upon further testing, you can create a functional function (pun intended) by saving the text file under the encoding type called UTF-8 (NOT UTF-8 BOM). Which can be done with Notepad++ for example

The Editor shipped with Windows saves a BOM at the beginning of every file, so you need to use another editing program, or remove the BOM manually from the file saved by the Editor. See MC-120962

You were right, the problem was the invisible BOM.

It's now fixed.

 

Thank you for your help!

Greetings

Lennart G.

(Unassigned)

Unconfirmed

Minecraft 1.13.2, Minecraft 19w14b

Retrieved