When I try to transfer the data, from my database, using a look up field to an Excel sheet, it completely changes the string.
Exemple:
Sheet.Cells[l,2]:=dmOrcamentos.ztBaseOrcamento.FieldByName('MP_DESC').Text;
Final data(the one that is showed in EXCEL):
䡃㠠〬‰䅓⁅〱㠰
In debuging mode it shows:
Sheet.Cells[l,2]:=dmOrcamentos.ztBaseOrcamento.FieldByName('MP_DESC').Text = <Error>
The result should be:
CH 2,00 SAE 1008
And if I use a normal string field, with special characters, it changes the special character.
Exemple:
Sheet.Range['B5'] := 'DESCRIÇÃO';
Final data(the one that is showed in EXCEL):
DESCRIÃÃO
The result should be:
DESCRIÇÃO
I use Lazarus 1.4.2 which is accompanied by FPC 2.6.4, Firebird 2.5 and Excel 2010. The DataBase has no encoding or, at least it shows NONE in Charset.