Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IE object and encoding
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00920838
Message ID:
00921073
Views:
28
Sergey, Thomas,

I tried five PC having different Windows (two 98, two NT4, one XP) with VFP7 program:

- only on one PC (very old PC, 98) I was able to run my code without any adjustments, changing charset, etc.;
- only on one (but another) PC (NT) I was able to change oIE..charset programmatically and the appearance of the WEB page was seen changed; on other PCs the appearance of the WEB page was not seen as changed, however the ?oie...charset returns the new value.
- on all PC except two (one allows to change charset programmatically) I need to manually change the encoding.

All settings on those PCs look similar. Any ideas on where to continue looking?



>Hi Yuri,
>
>Your code does work for me.
? "õîòèòå" $ oie.document.getelementsbytagname("TD").Item(1).innertext      && Returns .T.
I'm running under Win2KSP4 with English as locale and Cyrillic as default language. What is your OS and language settings?
>
>>
>>AFAIK, FontCharSet property introduced in VFP8. I am bound to VFP7 on this project anyway.
>>IE object has charset property, but it seems is readonly; at least I was unable to change the encoding with oie.document.charset=....
>>
>>But more important is that I need more, not just to see the text on the VFP screen. I need to get elements from the page refering to their text values in the code. For instance, the element
>>
>>oie.document.getelementsbytagname("TD").Item(1).innertext
>>
>>on the page www.foxclub.ru contains the header line following "FOXPRO CLUB". If I choose any one russian letter from the header then the line below returns true or false depending on the encoding:
>>?"russian letter go here"$oie.document.getelementsbytagname("TD").Item(1).innertext
>>
>>I doubt that the VFP string comparison commands like $ should be affected by _screen.fontcharset. Any other ideas?
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform