fpspreadsheet: Fix string encoding error observed with fpc3 and non-UTF8RTL.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4202 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2015-07-03 20:35:12 +00:00
parent 505eed8501
commit f80c3a9df0

View File

@ -1172,7 +1172,8 @@ var
wideStr: widestring;
begin
wideStr := ReadWideString(AStream, HAS_8BITLEN);
Result := UTF8Encode(wideStr);
// Result := UTF8Encode(wideStr); // wp: this leads to string encoding error with fpc 3.0 (no UTF8RTL)
Result := UTF16ToUTF8(wideStr);
end;
procedure TsSpreadBIFF8Reader.ReadStringRecord(AStream: TStream);