Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Russian characters
Message
From
06/02/2014 04:25:24
 
 
To
05/02/2014 05:00:16
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01593124
Message ID:
01593398
Views:
33
FontCharSet is only relevant to the display font characater set, not to how the data is stored in tables. Two VERY different things, and unfortunately, two things that do not work well together in VFP if you want a language other than the Windows localized language.

IOW if I am running, for example, Hebrew Windows, I can set the codepage and store Hebrew data in a .dbf. I can also set the FontCharset for display.

But if I am running US Windows, I may be able to display Hebrew charactes, but they cannot be stored as only codepages native to the Windows version are supported. Check out Rick Strahl's article.

>>i am trying to enter russian characters into my table,
>>
>>i have given the command
>>
>>codepage=1250 in config.fpw
>
>That's central european set, i.e. latin with šđčćžöüóúőpŁłéáű etc. For cyrillic, the codepage is 1251.
>
>>and in my startup main program
>>
>>
>>set collate="RUSSIAN"
>>
>
>Don't. Collation should be set for certain indexes individually, where you need them - on names etc - not on numeric or date fields. Probably can't be done anyway. Indexing a non-character field on anything but machine sequence is, if not impossible, leading to errors.
>
>>but i still get ???? instead of the russian characters
>
>Get it where? You should be able to set the .FontCharSet for any control, including _screen. Mind you, this does not include form captions, as they are governed by the current machine's character set for non-unicode programs, which is set somewhere in the control panel, regional settings or some such, depending on your version of windows. If there's a mismatch there, you'll get question marks or all accented characters (because the cyrillic set is, in cp1251, all in the upper half, which maps to these accented things in other codepages).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform