Implement CP949 to UTF-8 conversion for Korean.

This commit is contained in:
Aaron van Geffen authored and Michael Steenbeek committed 2017-12-22 14:51:21 +01:00
1 parent 0232bb5add
commit 558cc07cb0
3 files changed
+17064 -2

No files matched your search

+2 -2
View File
@@ -161,14 +161,14 @@ constexpr uint16 MAX_OBJECT_CACHED_STRINGS = 2048;
static wchar_t convert_specific_language_character_to_unicode(RCT2LanguageId languageId, wchar_t codepoint)
{
switch (languageId) {
case RCT2_LANGUAGE_ID_KOREAN:
return codepoint;
case RCT2_LANGUAGE_ID_CHINESE_TRADITIONAL:
return encoding_convert_big5_to_unicode(codepoint);
case RCT2_LANGUAGE_ID_CHINESE_SIMPLIFIED:
return encoding_convert_gb2312_to_unicode(codepoint);
case RCT2_LANGUAGE_ID_JAPANESE:
return encoding_convert_cp932_to_unicode(codepoint);
case RCT2_LANGUAGE_ID_KOREAN:
return encoding_convert_cp949_to_unicode(codepoint);
default:
return codepoint;
}