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
The code outputs incorrect result: Hinterfьllmaterial Ш 6 mm
Expected output Hinterfüllmaterial Ø 6 mm
Each compressed character(byte) has to be converted into unit16 and then decoded.
The line return string(decodeWindows1251(r.rgb[:])) should be replaced with:
name := []uint16{}
for _, b := range r.rgb[:] {
name = append(name, uint16(b))
}
runes := utf16.Decode(name)
return string(runes)
The text was updated successfully, but these errors were encountered:
Decoding of compressed characters is not handled correclty:
The code outputs incorrect result:
Hinterfьllmaterial Ш 6 mm
Expected output
Hinterfüllmaterial Ø 6 mm
Each compressed character(byte) has to be converted into unit16 and then decoded.
The line
return string(decodeWindows1251(r.rgb[:]))
should be replaced with:The text was updated successfully, but these errors were encountered: