You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using .readString() to read collection.db I stumbled upon on these funny characters: broken encoding, without touching osu-buffer source code, it can be fixed with this simple if-condition:
// coll is my internal constant from forEach loop and custom type structure.if(/[\u00C2\u00C3\u00D0\u00D1]/gi.test(coll.name))coll.name=Buffer.from(coll.name,"latin1").toString("utf8")
It should be applied (code above) before writing a broken string into database, otherwise it will break encoding more and more.
The text was updated successfully, but these errors were encountered:
Using
.readString()
to readcollection.db
I stumbled upon on these funny characters: broken encoding, without touching osu-buffer source code, it can be fixed with this simple if-condition:It should be applied (code above) before writing a broken string into database, otherwise it will break encoding more and more.
The text was updated successfully, but these errors were encountered: