我必须将VB6应用程序的字符串
输出的编码转换为特定的编码.
问题是,我不知道字符串的编码,因为:
According to the VB6 documentation when accessing certain API functions the internal Unicode strings are converted to ANSI strings using the default codepage of Windows.
因此,字符串输出的编码在不同系统上可能不同,但我必须知道它才能执行转换.
如何使用Win32 API读取默认代码页,或者 – 如果没有其他方法 – 通过阅读注册表?