On 3/4/2011 3:54 AM, Rafal Hanzel wrote:
Hi all

I have been trying on MVS-OE but maybe someone here will give me some advises.

I set the parameters in my HTTP server (httpd.conf):
DefaultFsCp IBM-870
DefaultNetCp ISO8859-2
and everything works fine when I open the http pages (z/OS http server ---to--->
PC browser) , but ....
the problem is when I try send informations to z/OS.

I have simple REXX program (test3.sh):

/* REXX */
parse arg arg1
SAY 'CONTENT-TYPE: TEXT/HTML'
SAY ''
SAY '<BR>' ARG1
EXIT

I use URL:
http://ts1/wizard-cgi/test3.sh?TESTżół (<--last 3 letters = polish letters)

and result is:

TESTŇóĎ

For test I added 1 line to REXX program:
SAY '<BR>żół' <--- 3 polish letters

effect:

TESTŇóĎ <--The last 3 letters are not correct
żół <-- The letters (from SAY '<BR>żół') are correct



I tried the "PostDataConv" parameter with the option set to YES.
In QUERY_STRING envar I have these same "improper" characters.

What is responsible for these changes ?

TIA


Clearly there is some codepage confusion somewhere
along the line; since your added SAY command reports
the hard-coded characters correctly, the problem is
not in REXX per se.

I assume you use the same browser to do other work in
Polish, so we can eliminate that end of the chain.

So the browser transmits these characters to your server
correctly; the server generally tries to convert from
the expected input codepage to the internal codepage
before passing the data to your CGI.

Since QUERY_STRING gets the bad characters, we can
narrow down the window of opportunity even more.

Pretty tough; I guess I would next look at the httpd.conf
directive ENUExecs - looks like it should be set to No.
Also, look for any InheritEnv directives: these could be
limiting values passed to your CGI. Ensure you have
DetectUTF8 OFF or no DetectUTF8 directive at all.

Kinda' grasping at straws here. The next step might be
to aquire one of the HTTP debugging tools (there are
free ones out there).


--

Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

303-393-8716
http://www.trainersfriend.com

* To get a good Return on your Investment, first make an investment!
  + Training your people is an excellent investment

* Try our new tool for calculating your Return On Investment
    for training dollars at
  http://www.trainersfriend.com/ROI/roi.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to