Click here to Skip to main content
16,022,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
vs2022 is in use. In Korean Windows
Programs written in the MFC->MDI environment have a problem with Korean characters being broken in English Windows. What is the solution?

What I have tried:
Posted
Comments
[no name] 6-Sep-24 5:27am    
Solution to what?

1 solution

If I understand correctly, Korean characters are either incorrectly displayed or not displayed at all in an MFC program running on an English version of Windows.

If the MFC program works as expected on a Korean version of Windows, but the issue arises on an English version, the problem could be related to the system's language settings and character encoding.

On a Korean version of Windows, the system locale is likely set to Korean by default, which ensures that non-Unicode programs can properly display Korean characters. On an English version of Windows, however, the locale is set to English, which may cause characters to be misinterpreted. Since changing the system locale is not an option, the goal should be to create an MFC program that correctly displays Korean characters regardless of the system's locale. Typically, you should use Unicode exclusively when programming to correctly handle international characters. Ensure that Unicode support is enabled in the Visual Studio project properties, which activates the _UNICODE and UNICODE preprocessor directives. Make sure that the application is fully Unicode-compatible and that all text encodings are handled correctly.

It's also possible that a Korean version of Windows has certain Asian fonts installed that are not available on an English version. In this case, the system might rely on font linking to substitute individual characters that are not present in the chosen primary font. When the primary font does not support a particular character, Windows automatically searches for an alternative font that contains the character and uses it for display. This process could be failing here. Switching to a different font or installing additional Korean fonts on the target system might help. Installing the Korean language pack could also be a viable solution.

Another option could be to use a standard Unicode font like 'Segoe UI,' which is widely supported across different Windows versions and includes a broad range of international characters.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900