Author | Topic: WAA application and OEM-ANSI charsets | |
---|---|---|
Vladimir Iahnenco | WAA application and OEM-ANSI charsets on Wed, 24 Nov 2004 10:39:43 -0500 Hi All, Does SET CHARSET setting has any influence on the non-English characters display in the Internet Explorer? I tested with ADSDBE (OEM and ANSI) and DBFCDX and didn't see any change. To save data in OEM format I had to convert oHTML:GetVar() strings to OEM and convert them back before oHTML:put(). Questions: 1.)Can anyone explain when xBase dooes do the conversion internally, because we have to share databases between WAA and non-WAA applications. 2)What is CHARSET setting for each DBE if we intend to use a DBE set: FOXCDX, DBFCDX and ADSDBE Thanks in advance, Vladimir -- Regards, Vladimir | |
Phil Ide | Re: WAA application and OEM-ANSI charsets on Thu, 25 Nov 2004 13:47:20 +0000 Vladimir, > Does SET CHARSET setting has any influence on the non-English characters > display in the Internet Explorer? No, because the remote computer/application has no idea what charset WAA is using. You can enforce a specific charset on the client by setting the META tags of the document, but this means editing the <head></head> section of the html page you are sending. If you use the HTML3 class methods to generate the page (e.g. oHtml:formStart()) then you cannot modify or edit in any way the header area. If you manually create the document (perhaps using HRF or HAL or by creating the document as a string and using oHtml:put(cDoc)), then you easily do this. Using HAL, you can create a template HTML page with the META tags already setup. If you don't use context sessions, then you can have a play with WAS, which is WAA compatible (and runs as a service or console app), and allows you to insert/edit data in the header area, e.g.: oHtml:putHeader('<META HTTP-EQUIV="Content-Type"')+; 'CONTENT="text/html; CHARSET=Windows-1251">') Regards, Phil Ide *************************************** * Xbase++ FAQ, Libraries and Sources: * * goto: http://www.idep.org.uk/xbase * *************************************** Friends help you move; Real friends help you move bodies. |