Closed mkapal closed 1 year ago
Text strings don't seem to be coverted into Unicode correctly.
For example, if I type in a button dialog:
Input: ř Received: ^Eø Converted: ø
ř
^Eø
ø
It is handled in BasePacket.ts:
if (typeof value === 'string' && value.length > 0) { value = parseLFSMessage(value); }
For reference (InSimDotNet):
https://github.com/alexmcbride/insimdotnet/blob/0406a0a6ba80267021d96e0bb8beb9696687bd22/InSimDotNet/LfsUnicodeEncoding2.cs
and
https://github.com/alexmcbride/insimdotnet/blob/0406a0a6ba80267021d96e0bb8beb9696687bd22/InSimDotNet/LfsUnicodeEncoding.cs
Fixed by using parseLFSMessage to parse the binary buffer directly in jspack.js
parseLFSMessage
jspack.js
Text strings don't seem to be coverted into Unicode correctly.
For example, if I type in a button dialog:
Input:
ř
Received:^Eø
Converted:ø
It is handled in BasePacket.ts: