CodePage ID to CodePage name: GetEncoding equivalent in Delphi?

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2010-04-04T11:51:41Z Indexed on 2010/04/04 23:33 UTC
Read the original article Hit count: 576

Filed under:
|
|
|
|

Hello all,

I'm looking for a Win32 equivalent of the .Net Encoding.GetEncoding Method to be used in Delphi7.

What I would like to achieve is to convert a Codepage ID (ie.: 28592) to a Codepage name (iso-8859-2 in this case).

I've found a Win32 function called GetCPInfoEx, but that returns a long CodePage name, and I need the short one, like the ones listed on this page: (see Name column) http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx

Thank you!

© Stack Overflow or respective owner

Related posts about delphi

Related posts about codepage