我是从打开一个繁体网页看到它是类似"=B0=A8=A4=C7=B7j=B4M"这样表现字符的,,
请各位牛人帮一帮忙,,解答一下. 除了是什么格式外,请告诉一下,怎样转换成繁体中文和简体中文??
请各位牛人帮一帮忙,,解答一下. 除了是什么格式外,请告诉一下,怎样转换成繁体中文和简体中文??
解决方案 »
- Fast Report 主从表打印问题
- 求一delphi 7.0中文版下载地址????
- 如何在程序中使用adoquery1实现创建新表的功能???????????????????????????????
- 真奇怪,为什么我用IEhelper,地址栏会被3721抢先拦截了?
- 求含有锐化(最好还有二值化、滤波、增强)等功能的delphi图像处理的原代码
- 请问如何在程序运行时得知程序的运行起始地址?
- 大家好,那位好兄弟有dephi实例代码
- 如何在Ehlib24的Footer中显示数据?
- ADO
- sql中在日期时间型数值中提取日期的函数是什么?
- 简单问题
- tradiogroup显示表字段内容小问题,高手进,在线等...........
这个急啊
有點像 quoted-printable編碼.這種編碼常用於郵件編碼的.
var
I, J: Integer;
begin
Result := '';
J := 0;
for I := 1 to Length(mSource) do begin
if mSource[I] in [#32..#127, #13, #10] - ['='] then begin
Result := Result + mSource[I];
Inc(J);
end else begin
Result := Result + '=' + IntToHex(Ord(mSource[I]), 2);
Inc(J, 3);
end;
if mSource[I] in [#13, #10] then J := 0;
if J >= 70 then begin
Result := Result + #13#10;
J := 0;
end;
end;
end; { QuotedPrintableEncode }function QuotedPrintableDecode(mCode: string): string;
var
I, J, L: Integer;
begin
Result := '';
J := 0;
mCode := AdjustLineBreaks(mCode);
L := Length(mCode);
I := 1;
while I <= L do begin
if mCode[I] = '=' then begin
Result := Result + Chr(StrToIntDef('$' + Copy(mCode, I + 1, 2), 0));
Inc(J, 3);
Inc(I, 3);
end else if mCode[I] in [#13, #10] then begin
if J < 70 then Result := Result + mCode[I];
if mCode[I] = #10 then J := 0;
Inc(I);
end else begin
Result := Result + mCode[I];
Inc(J);
Inc(I);
end;
end;
end; { QuotedPrintableDecode }function MBCSToUnicode( //将多字节字符串转换成Unicode编码字符串
mCodePage: UINT; //对照表页码
mMBCS: string //多字节字符串
): WideString; //返回处理后的字符串
var
L: Integer;
begin
L := MultiByteToWideChar(mCodePage, 0, PChar(mMBCS), -1, nil, 0);
SetLength(Result, L);
if L <= 0 then Exit;
MultiByteToWideChar(mCodePage, 0, PChar(mMBCS), -1, @Result[1], L);
end; { MBCSToUnicode }procedure TForm1.Button1Click(Sender: TObject);
begin
Memo1.Text := MBCSToUnicode(950,
QuotedPrintableDecode('=B0=A8=A4=C7=B7j=B4M'));
end;//馬匹搜尋
简体中文 (GB2312) gb2312 chinese, CN-GB, csGB2312, csGB231280, csISO58GB231280, GB_2312-80, GB231280, GB2312-80, GBK, iso-ir-58 IE5, IE4 Win95 936 936
简体中文 (HZ) hz-gb-2312 IE5, IE4 Win95 52936 936
简体中文 (Mac) x-mac-chinesesimp IE5 Win2000 10008 936
繁体中文 (Big5) big5 cn-big5, csbig5, x-x-big5 IE5, IE4 Win95 950 950
繁体中文 (CNS) x-Chinese-CNS IE5 Win2000 20000 950
繁体中文 (Eten) x-Chinese-Eten IE5 Win2000 20002 950
繁体中文 (Mac) x-mac-chinesetrad IE5 Win2000 10002 950