Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thai characters in VFP9 display incorrectly
Message
From
03/03/2007 07:33:02
Denis Filer
University of Oxford
United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01200084
Message ID:
01200491
Views:
19
Mathias, Thanks for this advice. I think my system is as Thai as I can make it. CPCURRENT(1) and (2) return 874 before and after entry to the app. The test DBF has this codepage. Adding a browse command to display the DBF shows the characters correctly UNTIL a class to display the data in a grid on a form is launched. This grid includes a textbox subclass. As soon as this is launched, the characters go wrong even using a basic BROWSE. There's nothing I can see in the class that seems to me to change code pages. Puzzling to say the least. Thanks again, Denis




Denis,

Check the system code page before launching your app. Then check it again while your app is running. If it's changed, then foxpro is translating the 874-Thai in your table to whatever the system code page is for display purposes.

Regards

Mathias

>I have installed the Thai language as prompted by XP and set my PC to the Thai language for non-unicode prgs, re-booted. When I browse a DBF direct in VFP 9 and paste in Thai characters from a Thai excel file, this displays OK. But open the same DBF file in my VFP 9 application, and they get scrambled. The code page of the DBF is 874-Thai (does this actually matter?). I've tried config.fpw empty and with various entries for set codepage altho not sure what is best there. Anyone out there understand the MS instructions for this? Interestingly, I did this recently with Chinese characters and it all worked well. Thanks, Denis
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform