-
Notifications
You must be signed in to change notification settings - Fork 102
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
Special Characters getting convert to slash (/) #2463
Comments
For reference, this might be an EBCDIC->UTF8 issue and not nessecerily something going wrong with VS Code.
|
For sure non-printable. x'05' is a tab. Just weird that it seems to change the value when saving. When I see it I drop all the characters before the actual text and use spaces to line things back up. |
When you copy/paste from ACS's "Run SQL Scripts", there may be tab characters in the code. ☹ As a workaround, you just need to find tab characters and replace them with spaces after pasting into VS Code. But it would be nice if there was an option to convert tabs to spaces when saving to a member. |
Maybe this extension could suit your need: https://marketplace.visualstudio.com/items?itemName=redlin.remove-tabs-on-save&ssr=false |
This was discussed in the 1/17/25 Code for IBM i Zoom call. I had recently seen it so I was able to reproduce it easily.
We have some source members with the tab character in them (x'05'). I have no idea how they got in there!
When first loaded they look fine. If you save them, close them, and reopen them you will then see the slash (/) character. I've attached a screenshot of the slashes and the "output" tab from VS Code. If you need anything else let me know.
Code for IBM i log.txt
![Image](https://private-user-images.githubusercontent.com/14948327/404433283-de5feea7-c9be-4897-b8b3-3c9e1740498d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODE3MzgsIm5iZiI6MTczOTE4MTQzOCwicGF0aCI6Ii8xNDk0ODMyNy80MDQ0MzMyODMtZGU1ZmVlYTctYzliZS00ODk3LWI4YjMtM2M5ZTE3NDA0OThkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA5NTcxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQwYWFkOGYyODIyZGQwMzkyZDhhNzg5YzI3ODVlMzkxY2VlZmQ1ODdjNGExODU1NTZhN2UzNjhlODhhNzZhNDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.usDc0Sb0uFutmtWhS0MbqOJTHxaMEc1HC9_13zDt1m8)
Active extensions
Remote system
Enabled features
Shell env
Variants
The text was updated successfully, but these errors were encountered: