Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CRYSTAL REPORT: French accents becomes /%&
Message
From
29/10/1999 09:09:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00283732
Message ID:
00283748
Views:
13
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform