标签:ring 汉字 nsis 乱码 string function else bsp get
function GetNBytesChar(s: Ansistring; n: Integer): string;
var
aStr: AnsiString;
bStr: WideString;
begin
aStr := Copy(s, 1, n);
bStr := aStr;
if aStr = bStr then
Result := astr
else
Result := Copy(s, 1, n-1);
end;
标签:ring 汉字 nsis 乱码 string function else bsp get
原文地址:http://www.cnblogs.com/yzryc/p/6329473.html