BenWoodworth / knbt

Kotlin NBT library for kotlinx.serialization
GNU Lesser General Public License v3.0
72 stars 2 forks source link

Ensure that Java NBT uses "Modified UTF-8" #41

Open BenWoodworth opened 4 months ago

BenWoodworth commented 4 months ago

NBT in Minecraft Java is implemented with Java's DataInput.readUTF(String), and DataInput/Output represent strings with Modified UTF-8 which is slightly different than standard UTF-8 for 0x00 and higher codepoints