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

Visual Fox Pro on Windows 10

Status
Not open for further replies.

Zhuska

MIS
Jun 26, 2018
3
GB
Hi,

I used to work with Visual FoxPro 9.0 on Windows 7. It was fine for me, at least it did what I wanted.
Recently, I upgraded OS to Windows 10 and installed VFP 9.0 and SP2. The dbf files have cyrillic characters, however, now with Windows 10 VFP does not recognise cyrillic characters anymore.
I am a new user for VFP, may be I installed it incorrectly, or I should deal with encoding... Can you please help me to fix it?

Thanks!
 
It sounds like you have a Unicode issue. You need to set the character set to the right Unicode value.
Not sure what that is off the top of my head, but have a look in that area.

Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Did you install an English Windows 10? Did you set your Windows to your language?

While VFP9 is English only within the IDE, it should default to a codepage that'll let you create new DBFs in an ANSI codepage that supports the Cyrillic alphabet and therefore matches the OS language. The HOME() folder contains some resource DLLs for the IDE other than VFP9ENU.DLL (note without the "R" for runtime), but not a VFP9RUS.DLL.

At runtime of your compiled EXEs will take a runtime resource DLL for the language (when you provide them) as VFP9RENU.DLL (note with "R") and several others, like VFP9RRUS.DLL, but within the IDE the localization limits itself to allowing a supported ANSI Codepage for your language. In Western European Windows versions and I guess also in US Windows that's typically Codepage 1252. For Slavic Languages or Russian, it should be 1251.

What's displayed when you do this?
Code:
? Cpcurrent()
? Set("Cpcompile")

VFP would adapt to your Windows if you look for the Language Pack for your Country and install that. If that doesn't help, perhaps a Russian VFP developer can tell you what to change, you can enforce the codepage VFP uses with a config.fpw file that contains CODEPAGE=1251, without such a config VFP will pick one automatic, which is like configuring CODEPAGE=AUTO there.

Bye, Olaf.

Olaf Doschke Software Engineering
 
Hi,

I have tried to install Russian language pack to Windows 10, but it didn't work.
So, I have degraded back to Windows 7 (I thought it may help =)). Installed Russian package, but VFP still does not recognize Cyrillic =(
When I do this:
CODE
? Cpcurrent()
? Set("Cpcompile")

I get this:
1252
1252

Am I doing something completely wrong? I am new to VFP and I am a student now, so there is no one at the University who can help me with this problem...
Please help!

Best,
Zhuska
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top