Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#13 fpspreadsheet: open document is not returning UTF8 values

closed-fixed
nobody
None
5
2009-11-23
2009-11-14
Luiz Camara
No

The open document is returning (ReadAsUtf8) strings encoded in the system ansi encoding instead of UTF-8.
To see this problem create a spreadsheet with accented char (João), read the value and check with the LCLProc.FindInvalidUTF8Character or just set to a label caption.

To fix this in TsSpreadOpenDocReader.ReadLabel

add a call to UTF8Encode:

FWorkSheet.WriteUTF8Text(ARow,ACol,UTF8Encode(ACellNode.TextContent));

Discussion

  • Luiz Camara
    Luiz Camara
    2009-11-23

    • status: open --> closed-fixed