Skip to content

cannot replace when processing special character "₫" #85

Open
@JackTJC

Description

here I have a price field to modify, and i wanna use both of Optimistic and ReplaceInPlace option because the path is very simple and i wanna a better performance, but the bellowing code doesn't works well

set, err := sjson.SetOptions(`{"test":"149.000₫"}`, "test", "255.000₫", &sjson.Options{
	Optimistic:     true,
	ReplaceInPlace: true,
})
fmt.Println(set) // output: {"test":"149.000₫"}, actually no change

above code change nothing in json and doesn't return the errNoChange

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