FAQ : Frequently Asked Questions | ||
|
12. |
Q:
Some special characters I key in my HTML source members
show different on my Web pages. Why? How can I solve this? A: The following special characters, # @ ! { } [ ] | which have special meanings for HTML and JavaScript, will not show correctly in your Web pages, unless you make sure that, before entering SEU, your job CCSID matches the language of your keyboard. Do the following: Step 1- Check out system value qccsid. HTTP server jobs are initiated with a CCSID value taken from system value QCCSID. If a CGI runs with CCSID=65535, the CCSID of the external html loaded by the CGI is not properly converted to the CCSID expected by the HTTP server for the output response, and CGI may get into severe troubles. See also Step 4. If you experience troubles with system value QCCSID 65535 and you cannot change system value QCCSID to another value (e.g. 37) because this would impact some production, see FAQ#1 about restarting your HTTP instance with a given CCSID value. Step 2- Make sure that your HTML source or stream file contains the correct characters The CCSID of the 5250 emulator session, must match the language of your keyboard. Do the following:
chgjob ccsid(...) to set it properly, than start SEU or display your stream file. The following table lists the major keyboard languages and the corresponding CCSID's:
Step 3- Make sure that your HTML contains the following <meta ... > tag: <html> <head> ... ... ... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> ... ... ... </head> Step 4- Make sure that the HTML from your CGIs is not translated from a CCSID to another CCSID The CCSID of the HTTP job running the CGI and the CCSID specified in your HTTP configuration must be the same. If this is not true, then special characters in your HTML source are converted to the wrong values in the resulting web pages. To find out what's going on:
|