>I have a crystal v7 report done on a fox2 dbf. In foxpro, the french accents (Ééà...) look ok when I browse. When I do a report on it, it gives me strange characters.
>
>Any explanation?
>Thanks
>Eric
Eric,
FP has ability to translate between codepages when it's marked with a codepage. ie:a dbf might be created in DOS with CP 857 (Turkish DOS). When you open it under win FP would ask you its CP if not marked already. You say 857 and it displays correctly with CP 1254 (Turkish Windows). One of the things that you could do is to translate it explicitly to win CP and mark.
use myTable
lnDOSCP = 857
lnWinCP = 1254
for ix = 1 to fcount()
if type(field(ix)) $ "CM"
replace (field(ix)) with ;
cpconvert( lnDosCP, lnWinCP, eval(field(ix)) )
endif
endfor
use
do home()+"tools\cpzero\cpzero" with "myTable.dbf", lnWinCP
Cetin