pcplayer: 用 Delphi 提供的 Utf8Decode 函数测试的结果:如果是Ascii,输出还是Ascii,不变;如果是 GB2312,输出为空字符串。 [阅读: 3003] 2007-04-05 04:21:49 S: string; WS: WideString; WS := UTF8Decode(S); if WS=S then S is ASCII if WS='' then S is 汉字