Find the answer to your Linux question:
Results 1 to 3 of 3
Hello: I was wondering if someone can help me... I have a file that I am trying to LFTP from my Linux server to my Mainframe and the file is ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    7

    LFTP from Linux to Mainframe (Data contains accent characters)

    Hello:


    I was wondering if someone can help me... I have a file that I am trying to LFTP from my Linux server to my Mainframe and the file is uploading but the data looks slightly corrupted...

    First off let me tell you the following text is French and it contains accent characters

    Below is an example of data view on a PC:
    factureNuméro

    The above example is correct…

    Below is how the data looks when you view the data through vi or on the Mainframe:
    factureNuméro

    Note how the accent e is turned into a uppercase accent A and a copyright symbol.

    When I view the PC file in hex through Notepad ++ the é turns into é and the result is one character turning into two characters… à is a hex C3 and © is a hex A9.

    When I LFTP the file to the mainframe the é characters are transferred and I end up with a hex 66 and a hex E4….

    The end result I am after is that I want to transfer my linux file, who’s data looks like this on the linux server: factureNuméro and like this when viewed on a PC: factureNuméro to my mainframe and I want it to look the same as when I transfer it to the PC…. Like this: factureNuméro

    With LFTP I have tried the following code page options:

    Methods Tested so far:
    IBM-297 - is the CA French Code Page
    ISO8859-15 - is the ISO Europe Extended
    IBM-819 - ASCII IBM Code page
    No Code Page - File transferred but was missing characters
    site sbd=(IBM-297,ISO8859-1) - File transferred but still had incorrect looking charset
    site sbd=(IBM-297) - 200-Sbdataconn invalid syntax
    site sbd=(IBM-037) - 200-Sbdataconn invalid syntax
    site sbd=(ISO8859-1,IBM-037) - Content was not recognizable
    site sbd=(ISO8859-1,IBM-297) - Content was not recognizable
    site sbd=(IBM-037,ISO8859-15) - File transferred but still had incorrect looking charset
    site sbd=(IBM-297,IBM-819) - File transferred but still had incorrect looking charset

    Who can help me…

    Thank You,
    Mike

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    My first thought was, that ascii mode instead of binary is used.
    But according to the man page, binary is the default.
    lftp.1
    Still, I wouldnt rule that out completely.
    Is there something related in your config?

    Other than that, would it be an option to drop the use of ftp
    and use rsync or rsync over ssh instead?
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    7
    Thank you Irithori,

    Binary is the default and my only option for transferring this file to my mainframe is LFTP. Thank you... I am sure this is possible. This should be simple....

    Thank you for your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...