Skip to content

FormatException: Encoded surrogate (at offset 12) #14

Description

@HuyNguyen1590

Please check this nbt file
minecraft_building.zip
When i using visual code to read, it all fine. The endianness is little.
Screenshot 2024-09-27 at 17 17 45
Screenshot 2024-09-27 at 17 17 54
But the code below return the error: FormatException: Encoded surrogate (at offset 12)
var result = await FilePicker.platform.pickFiles(allowMultiple: false); File f = File(result!.files.first.path!); final nbtReader = NbtReader.fromFile(f.path); nbtReader.setEndianness = Endian.little; nbtReader.read(); NbtCompound rootNode = nbtReader.root!;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions