Jeff McKay
2007-01-05 00:38:55 UTC
Hello, I have a need to convert text encoded in ANSI/OEM Japanese (codepage
932)
into ISO-2022-JP (codepage 50220). I attempt to do this by running the text
through
MultiByteToWideChar with code page 932 (this works). Then I take the output
of that
and try WideCharToMultiByte with code page 50220. This fails with a
GetLastError code
of 87 (invalid parameter). Does it make any sense that 50220 would not be
supported?
I believe I do have all the codepages installed in Windows. I have used
this exact same
routine to convert in the other direction, i.e. 50220 -> 932 and it works
fine. So what
could be going wrong?
932)
into ISO-2022-JP (codepage 50220). I attempt to do this by running the text
through
MultiByteToWideChar with code page 932 (this works). Then I take the output
of that
and try WideCharToMultiByte with code page 50220. This fails with a
GetLastError code
of 87 (invalid parameter). Does it make any sense that 50220 would not be
supported?
I believe I do have all the codepages installed in Windows. I have used
this exact same
routine to convert in the other direction, i.e. 50220 -> 932 and it works
fine. So what
could be going wrong?