Author |
Message
|
Zappa |
Posted: Fri Jun 01, 2012 4:40 am Post subject: ASCII transfer |
|
|
 Acolyte
Joined: 06 Oct 2005 Posts: 55 Location: UK
|
Hopefully this isn’t a double post, there are similar but not my scenario.
I have a WMB 6.1 flow with a fileinput attached to a fileoutput and doing an ASCII ftp from Windows to Unix.
I do a chcp on windows and 850 is displayed. On AIX the LC_ALL is set to C
But the transferred file doesn’t have all characters converted correctly i.e. a “£” will become a “?”
A little guidance would be greatly appreciated. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jun 01, 2012 4:48 am Post subject: Re: ASCII transfer |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Zappa wrote: |
A little guidance would be greatly appreciated. |
What code page does LC_ALL=C force AIX to use? Seriously, I don't know but I don't see any immediate reason why that locale would use a code page which matches Windows 850. And clearly it doesn't, or this would be working.
What code page is the output message sent in by the FileOutput node? Is it just inheriting the input code page or does the flow make some kind of choice based on destination? I'm assuming there's more to your flow that the 2 nodes mentioned or it's a bit cumbersome just for an ftp _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Zappa |
Posted: Fri Jun 01, 2012 5:07 am Post subject: |
|
|
 Acolyte
Joined: 06 Oct 2005 Posts: 55 Location: UK
|
"C" means US7ASCII , this implies that you can only display a-z, A-Z and 0-9 and nothing else.
Think I should change it to be en_US - maybe.
Is changing this something I should be wary of? |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jun 01, 2012 5:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Zappa wrote: |
Think I should change it to be en_US - maybe. |
Will a US locale force a code page with “£”? More likely to contain "$" I'd say.
Zappa wrote: |
Is changing this something I should be wary of? |
You're changing a globally used setting. I'd take your "wary" and raise you "cautious" with an option on "nervous". I'd be more inclined to find a code page installed on your AIX that supports the characters you need and have WMB use that for the output message.
Which would be 1 good reason to use WMB to do what looks like a simple ftp rather than just using ftp _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jun 01, 2012 5:26 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
So if you have a message flow that is FileInput->FileOutput, and both File nodes are doing FTPs on top of that, you have four places that the file contents could have their code page converted.
- FTP->FileInput
- FileInput->logical message tree
- logical message tree->FileOutput
- FileOutput->FTP
I believe the FileInput node archive directory contains the file after the FTP step but before it's read by FileInput, and likewise with the FileOutput mqsiarchive directory.
The only reason to be leery of altering LC_ALL is because you have other applications than Broker and MQ on the hardware and they are sensitive to it. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jun 01, 2012 5:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
The only reason to be leery of altering LC_ALL is because you have other applications than Broker and MQ on the hardware and they are sensitive to it. |
Like whatever's processing the file after it's been ftp'd?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Zappa |
Posted: Fri Jun 01, 2012 5:40 am Post subject: |
|
|
 Acolyte
Joined: 06 Oct 2005 Posts: 55 Location: UK
|
I will leave LC well alone and very glad that you’ve raised the level of my wariness as it certainly didn’t seem the right thing to do.
This flow is only a cumbersome test for verifying the correct code page I need to use but not sure where to start looking for it though. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jun 01, 2012 5:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Zappa wrote: |
not sure where to start looking for it though. |
I'd start with the sys admin for the AIX box _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|