Question about Chinese and Portuguese
Posted: Tue Aug 15, 2006 4:07 am
Hi, Lars
I'm using Windows XP traditional chinese version, delphi 6.0 and MS Office 2000 traditional chinese version.
I need to post both chinese and portuguese to excel file using the following code:
XLS.Filename := 'D:\Temp\1.xls';
XLS.Read;
XLS.Sheet[0].AsString[1,1] := '中文';
XLS.Sheet[0].AsWideString[1,2] := AnsiString('abcção');
XLS.Filename := 'D:\temp\2.xls';
XLS.Write;
After running, the chinese can be post successfully, but the portuguese is changed into 'abc誽o' no matter I use AsString or AsWideString. Can you help me?
Ken
I'm using Windows XP traditional chinese version, delphi 6.0 and MS Office 2000 traditional chinese version.
I need to post both chinese and portuguese to excel file using the following code:
XLS.Filename := 'D:\Temp\1.xls';
XLS.Read;
XLS.Sheet[0].AsString[1,1] := '中文';
XLS.Sheet[0].AsWideString[1,2] := AnsiString('abcção');
XLS.Filename := 'D:\temp\2.xls';
XLS.Write;
After running, the chinese can be post successfully, but the portuguese is changed into 'abc誽o' no matter I use AsString or AsWideString. Can you help me?
Ken