Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thai characters in VFP9 display incorrectly
Message
De
03/03/2007 07:33:02
Denis Filer
University of Oxford
Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01200084
Message ID:
01200491
Vues:
20
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform