node-simconnect
node-simconnect copied to clipboard
Encode/decode strings with win1252
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.