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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Poblem caused by CodePage?

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!

Once I do input to table the Euro-sign '€'(rightAlt+5) it happens that if I go to next record the '€' changes to chr(199) (C with comma under it).
I think it has to deal with codepage but as I never ever used any function for codepages I really don't know how to fix this. This (conversion into other character) also seems to happen to characters having an accent on it.
Any suggestions?

KR
-Bart
 
Code:
Create Cursor curTest (cTest C(2))
? Cpdbf('curTest')
Insert into curTest values ('€')
?Asc(ctest)

I get 1252 and 128, what do you get?

It could be true, that it's code page related. By default vfp uses a Windows language specific codepage. For me and most of west europe and I think USA that is 1252 - Windows ANSI. And chr(128) is the euro sign, which can be subject to code page changes, as it's not within the first 128 characters 0-127, but normally still makes no problem.

Bye, Olaf.
 
Hi Olaf,
Same result here.

But once I input in a characterfield the '€'
it changes into 'Ç' being chr(199).
I found that after using the tool cpZero '€' stayed.

Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top