[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: EBCDIC - AXCII translation issues



Scott

Bloody marvellous. I changed the language Id as you suggested and bingo.

I think this proves beyond doubt that we are indeed "two nations divided
by a common language"

Thanks for your help. I'm sure that like Arnie "I'll be back'

Clive Johnson
RPG Developer

KURT GEIGER LIMITED
75 Bermondsey Street, London, SE1 3XF
t: +44 (0)207 546 1888 dl: +44 
f: +44 (0)207 546 1880 m: +44 
WWW.KURTGEIGER.COM


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Klement
Sent: 10 May 2011 21:53
To: HTTPAPI and FTPAPI Projects
Subject: Re: EBCDIC - AXCII translation issues

Hello Clive,

Let's review your DSPJOB output, which I found rather interesting:

On 5/10/2011 9:05 AM, Clive Johnson wrote:
> Language identifier . . . . . . . . . . . . . . . :   ENU
> Country or region identifier  . . . . . . . . . . :   GB
> Coded character set identifier  . . . . . . . . . :   65535
> Default coded character set identifier  . . . . . :   37

ENU means "English, United States". But GB means "Great Britain".  Sort
of contradictory, isn't it?  Your Default CCSID is 37, which is the
CCSID normally used in the United States.

Assuming that you are running HTTPAPI interactively, try typing the
following before you run it (if HTTPAPI has already been activated,
please reclaim the activation group, as well.)

CHGJOB LANGID(ENG)

Now when you type DSPJOB, opt 2 should show the default CCSID as 285
(the EBCDIC normally used in the UK) and when you run HTTPAPI, it should
translate properly.

If I'm right, and the translation works properly, then the proper
permanent fix would be to type:

CHGSYSVAL SYSVAL(QLANGID) VALUE(ENG)


>
> Before translation the [ (open square bracket) character is X'B1'
> Following translation the character is X'A3'
>

Here's a chart that shows the mapping of hex values to characters for
CCSID 37 (which is what your DSPJOB shows that you are using):

ftp://ftp.software.ibm.com/software/globalization/gcoc/attachments/CP000
37.pdf

You'll note that on that chart, x'B1' is the symbol for pounds
sterling...  Take a look at the CCSID 285 (UK English) chart:

ftp://ftp.software.ibm.com/software/globalization/gcoc/attachments/CP002
85.pdf

On that chart, you'll see that x'B1' is indeed the [ character.


So here's my hypothesis:
-- You have a UK 5250 terminal. The [ key registers as x'B1'
-- You have QCCSID=65535, so no translation is done.  The
      x'B1' gets entered into your files/source members
      unchanged.
-- Your system is configured with QLANGID=ENU.  So it thinks
      x'B1' is actually the symbol for pounds sterling.
-- When a screen displays the x'B1', it is passed to your
      terminal unchanged (again, due to QCCSID=65535) so
      the terminal displays x'B1' as [ again.
-- But programs think the x'B1' is actually pounds sterling,
      so when translated to ASCII it gets converted to the
      pounds symbol in ASCII as well.

Hope that makes sense.

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
***********************************************************************

This message has been sent via the Internet. Internet communications
are not secure against interception or modification. Kurt Geiger
Limited therefore cannot guarantee that this message has not been
modified in transit.
This message and any files transmitted with it are confidential and
intended solely for the use of the addressee. If you have received this
message in error please notify the sender and destroy your copies of
the message and any attached files.

Kurt Geiger Limited
Registered in England and Wales
Company Number 968046
Registered Office:
75 Bermondsey Street
Borough
London
SE1 3XF

***********************************************************************
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------