-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the management of codepages conversions #83
Comments
Hi @FALLAI-Denis , thank you. We may have a proposal to add a --site option to zftp commands to let users write their SITE commands. On one hand, this is very flexible for users to change or customize their site configuration. On the other hand, it is easy to maintain the zftp plugin for us. Thank you! |
Thanks for your feedback. The --site option will have to accept multiple parameters, and even the reference to a file, as the number of options can be large. Even though the configuration of the FTP server on z/OS can be changed (and it is not a simple operation, administratively), there cannot be one configuration that meets all the needs anyway. So you have to be able to specify the options at the client level, therefore at the Zowe CLI level. |
Hi, setting only the server encoding via site-command dosn't seem to be enough. I can set the remote codepage via a ftps.rc-file on the host and get ios8859-1-encoding on the pc-site. That works good, but it's not possible to set a multi-byte-encoding (like UTF-8) if you have to use fixed block files/libraries on host site. Thank you for your support and this fantastic tools. |
Thank you @andiknie. For the multi-byte-encoding, you can try to specify the following ftp commands in the ftps.rc-file:
Could you help to test in your environment? Thank you very much! |
Hi, z/OS FTP has limitations regarding conversions between single-byte encoding and multi-byte encoding. It seems to me that this is only possible on variable format files. |
Hi @tiantn,I tried with multi byte encoding, but that's only possible with variable format on this (when sending files to host). Unfortunately we need fixed format for coding.That's why we need client side converting while sending and receiving files. Iconv-lite could do the job and is easy to integrate into zowe ftp.Thank you for considering this.Am 20.09.2022 04:37 schrieb tiantn ***@***.***>:
Thank you @andiknie.
For the multi-byte-encoding, you can try to specify the following ftp commands in the ftps.rc-file:
site encoding=mbcs
site mbdataconn=(utf-8,Latin_1)
Could you help to test in your environment? Thank you very much!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi, FYI, I open a RFE for this issue on 2020, December 16: |
Hi,that's correct. That's why I need the possibility of a real encoding on the client side. I made a poc with iconv-lite and that worked out very well. It just had to be changed to use parametrically instead of hard coded conversion. You could check out my fork.And I wasn't able to build the vs Code extension für the FTP plugin with my fork.Am 21.09.2022 02:58 schrieb Denis FALLAI ***@***.***>:
Hi,
z/OS FTP has limitations regarding conversions between single-byte encoding and multi-byte encoding. It seems to me that this is only possible on variable format files.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I'm using the ftp extension and I'm not able to download/upload files with SBD=(IBM-1047, ISO8859-1)... Does anyone have any updates on this issue? |
The possibility of transferring mvs or uss files by controlling the conversion of characters according codepages seems essential to us.
However, this functionality is not available in the zowe-cli-ftp-plugin.
Confer. #68.
It would be necessary to add at least the management of two options:
You might need to manage other options to differentiate between single-byte conversions and multi-byte conversions.
This information should be able to be specified at the profile level, and at the level of each command.
Regarding the FTP transfer on z/OS, this concerns several (
quote
)site
options:ENCODING=SBCS|MBCS
SBD=(remote,local)
orMBD=(remote,local)
UNICODEFILESYSTEMBOM=ASIS|ALWAYS|NEVER
The text was updated successfully, but these errors were encountered: