in delphi2010
Write some spectial unicode useing “asWideString” like this:
procedure TForm1.Button1Click(Sender: TObject);
begin
XLSReadWriteII41.Sheets[0].AsWideString[0,0]:='ª®¥';
XLSReadWriteII41.Filename:='D:\U.xls';
XLSReadWriteII41.Write;
end;
Then,read it back useing "asWideString" like this.
procedure TForm1.Button2Click(Sender: TObject);
begin
XLSReadWriteII41.Filename:='D:\U.xls';
XLSReadWriteII41.Read;
Edit2.Text:=XLSReadWriteII41.Sheets[0].AsWideString[0,0];
end;
But,the text in Edit2 is :"a?£¤",not raw string "'ª®¥".Why??
write unicodestring not correct
Re: write unicodestring not correct
Hello
I can't reproduce this.
Anyway, don't use AsWideString, it's only for backward compability. Use AsString instead.
I can't reproduce this.
Anyway, don't use AsWideString, it's only for backward compability. Use AsString instead.
Lars Arvidsson, Axolot Data
-
- Posts: 10
- Joined: Thu Nov 16, 2006 7:14 am
Re: write unicodestring not correct
I use asstring still got this error.
My OS is windows XP chinese edition.
My OS is windows XP chinese edition.
-
- Posts: 10
- Joined: Thu Nov 16, 2006 7:14 am
Re: write unicodestring not correct
Hello,do you reproduced?
-
- Posts: 10
- Joined: Thu Nov 16, 2006 7:14 am
Re: write unicodestring not correct
Hello,did you reproduced??
Re: write unicodestring not correct
Hello
Windows XP is not unicode, so you must first convert your text to unicode.
Windows XP is not unicode, so you must first convert your text to unicode.
Lars Arvidsson, Axolot Data