-
Notifications
You must be signed in to change notification settings - Fork 100
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
Respect the USS encoding of files in the editor #887
Comments
One thing you must be careful of is when things are tagged wrongly. Sometimes this happens due to human error, other times it happens because configuration of some software is wrong, leading to automatic incorrect tagging. |
Currently we implement We should consider deprecating this method and replacing it with |
Thank you for raising this enhancement request. |
This is a problem for me when I want to edit my Python files on z/OS. They are in ASCII format, and VS Code makes a mess of them. |
Closing as duplicate of #2576 |
Is your feature request related to a problem? Please describe.
On USS files can be encoded, e.g.
ISO8559-1 files are becoming more frequent on USS, especially .json files for Node, as well as Zowe itself that uses this encoding for its application.yml files by the API Mediation Layer.
The problem is the Zowe Explorer always tries to convert the files from EBCDIC, so encoded files open as garbled characters, and also when data is saved it is garbled on save.
The Zowe Explorer allows for manual toggling between file types, however if it could respect the USS encoding this would make it more usable.
This has been reported to me by a number of users as a block for Zowe Explorer adoption, as other z/OS editors and workbenches do respect USS encoding tags.
Describe the solution you'd like
Before the file is retrieved look at the tagging, see CLI issue zowe/zowe-cli#740 that describes the z/OSMF API that can be used to retrieve the tagging.
When the file is opened display it in the text codepage and when the file is saved store it using the X-IBM-Data-Type so that data is not garbled on save
Additional context
The associated Git CLI issue zowe/zowe-cli#740 covers some of the REST API commands to retrieve the tagging as well as stop the converstion on the data get and put.
The text was updated successfully, but these errors were encountered: