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;
}
File diff suppressed because it is too large. Load diff
+1
View File
@@ -106,6 +106,7 @@ wchar_t encoding_convert_unicode_to_rct2(wchar_t unicode);
wchar_t encoding_convert_gb2312_to_unicode(wchar_t gb2312);
wchar_t encoding_convert_big5_to_unicode(wchar_t big5);
wchar_t encoding_convert_cp932_to_unicode(wchar_t cp932);
wchar_t encoding_convert_cp949_to_unicode(wchar_t cp949);
#define MAX_USER_STRINGS 1024
#define USER_STRING_MAX_LENGTH 32