Delphi - Get Windows' default non-unicode character set
问题 I have a Delphi 7 application. I need to be able to get the default Windows character set for non-unicode programs. I know DEFAULT_CHARSET sets it, but I need to know exactly which charset it is, so that I could compare it to other character sets. Is this possible and how? Thanks! 回答1: GetFontData is calling GetObject and using LogFont.lfCharSet to determine the charset GetObject called with HFONT will fill LogFont Definition here is DEFAULT_CHARSET is set to a value based on the current