|
遇到这类文件,基本utf8tosys,systoutf8是没用的。
无意中找到一种完全可用的方法,先买几个金币。到时候跟猫工换金条。
哈哈哈
靠,怎么不让俺卖钱??
算了,就这样贴出来。
并且欢迎大家提供目录中有unicode的解决方法。
procedure TForm1.Button2Click(Sender: TObject);
var sr: TSearchRec; s: string;
begin
if not OpenDialog1.Execute then Exit;
Button2.Caption := OpenDialog1.FileName;
FindFirstUTF8(OpenDialog1.FileName, faAnyFile, sr);
s :=(ExtractFilePath(((OpenDialog1.FileName)))) + StrPas(sr.FindData.cAlternateFileName);;
FindCloseUTF8(sr);
Memo1.Lines.LoadFromFile(s);
end;
utf8tosys, utf8toansi是有局限性的。 |
评分
-
查看全部评分
|