TheStarport/FLHook

wstos and stows convert to ANSI when it should be UTF-8

Closed this issue · 1 comments

These functions call either WideCharToMultiByte or MultiByteToWideChar and the first parameter is CP_ACP. This should be changed to CP_UTF8.

This causes problems such as in the Stats plugin, when umlauts (for example) are used in a character name.

This was the root cause of #352. The stats plugin will be temporarily patched with its own implementation of wtos until this is fixed. We didn't want to change this in 4.0 since these functions are used everywhere and needs more testing.

Fixed for 4.1 in bb8ef1d