fpspreadsheet: Fix utf8 issues in rpn formulas (biff8)

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3263 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2014-07-01 14:55:27 +00:00
parent 0aaff39316
commit 24f4023486

View File

@ -927,7 +927,7 @@ begin
INT_EXCEL_TOKEN_TSTR: { fekString }
begin
// string constant is stored as widestring in BIFF8
wideStr := AFormula[i].StringValue;
wideStr := UTF8Decode(AFormula[i].StringValue);
len := Length(wideStr);
AStream.WriteByte(len); // char count in 1 byte
AStream.WriteByte(1); // Widestring flags, 1=regular unicode LE string