Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CODE PAGE problem

Status
Not open for further replies.

FoxAll

Programmer
Jun 13, 2003
49
CA
Hi,

I have somes problem to translate a older app in VFP.
When I take program in VFP, all special caraters are unreconised.

for exemple the ascII box create with ,

chr(201)+chr(205)+chr(187)
chr(186)+chr(32)+chr(186)
chr(200)+chr(205)+chr(188)

it's impossible to reproduce in VFP?

Can you help me to understand why it's ok in DOS but not in VFP ?

thankx for your help.





 
Not sure where you see the issue, but it might just be a font 'problem' What font is the older app using?

Brian
 
Have a look at the helpfile topic "set codepage" and "font properties"

Rob.
 
Foxall,

Yes, this is certainly a codepage issue.

Normally, when you first open a Foxpro/Dos table in VFP, you are prompted for a code page. You need to select either Windows ANSI (which is code page 1252, if I remember right) or the code page for your particular language.

If you didn't get that prompt, or if you cancelled it, you can still set the code page. First, use the CPZERO.PRG program that comes with VFP to clear out the code page, then open the file again (look for this PRG in your Tools folder). Alternatively, use CPCONVERT() to convert a given field (not the whole table) to a different code page.

To ensure that the prompt always appears when you first open a DOS table in VFP, execute SET CPDIALOG ON.

Hope this helps.

Mike

Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
hi,

Finatly, it's a FONT problem, if I try :

?chr(201)+chr(205)+chr(187)
_screen.FontName = "FoxFont"
?chr(201)+chr(205)+chr(187)

then it works... !

thank you all



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top