node-simconnect icon indicating copy to clipboard operation
node-simconnect copied to clipboard

Encode/decode strings with win1252

Open pepperoni505 opened this issue 2 months ago • 2 comments

Currently, the putString and makeString functions in the buffer utilities file treat the string as a UTF-8 encoded string. However, SimConnect uses Windows-1252 encoding. We noticed this issue when inspecting the RecvOpen details of a P3D connection; the string was read as Lockheed Martin� Prepar3D� v6. With this fix, the string reads properly.

pepperoni505 avatar Nov 25 '25 12:11 pepperoni505