Skip to content

CCSID Issue, special characters not shown correctly #2885

@SamuelPierno

Description

@SamuelPierno

Describe the bug
I have been looking at the other 22 CCSID closed issues and this might be a tn5250 issue but let's see if we can solve it. I have already reported this issue via mail but I guess this is the correct way to report. Could also be split in 3 issues but for now I'll place all the information in this one.

Basicaly the interface in IBM I has the encoding 1145 (Spanish with euro) which is esentialy the 284 with € but when we configure the 284 in the plugin terminal all the special characters appear as “?”

Image

If we configure another encoding we get # instead of ? but it is also wrong.

Image

In this example the characters are actualy “ñ” but the same happens with any special character like ó:

Image

Anyway this is just an “interface” issue which we would like to solve but doesn’t affect the code. We have a problem with the code encoding too, different files and libraries have different encodings like 37 and 284 for example, but when opening the members in the plugin they are opened in utf-8 and we don’t see the special characters correctly. Not seeing the existing ones is not a problem per se but if we add or change one it is saved in the wrong encoding so the code fails.

As mentioned previously we also have an issue where copies are not detected in the plugin, our copies are automaticaly generated, by default type is empty so code for ibm I give no extension to them, we have tried adding an extension configured in the plugin as type to some copies but they were still not detected.

Image

To Reproduce
Steps to reproduce the behavior:
Interface issue:
Have an iSeries system with interface in encoding 284 or 1145. Have special characters in the interface and try to see them connecting to the system in code for ibm I and opening a 5250 terminal.

Code issue:
In any iSeries system have a file in encoding 284 (for example). Inside said file create a member. Inside that member have special characters as 'ç', 'ñ' or 'ó'. Open the member in code for ibm i.

Expected behavior
We would expect to be able to see special characters both in the 5250 terminal and when editing members also editing the members and adding new special characters should be saved in the library encoding and lastly we would like to have only real code errors shown and not existing copies not found.

Screenshots
Added inside the explanation.


Context Version
Code for IBM i version 2.13.5
Visual Studio Code version 1.85.1
Operating System win32_x64
Active extensions
Auto Close Tag (auto-close-tag): 0.5.15
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.5.0
Db2 for IBM i (vscode-db2i): 1.5.2
Document This (docthis): 0.8.2
ESLint (vscode-eslint): 3.0.8
Emmet (emmet): 1.0.0
Extension Authoring (extension-editing): 1.0.0
Git (git): 1.0.0
Git Base (git-base): 1.0.0
GitHub (github): 0.0.1
GitHub Authentication (github-authentication): 0.0.2
GitHub Copilot (copilot): 1.250.0
GitHub Copilot Chat (copilot-chat): 0.11.1
GitLens — Git supercharged (gitlens): 16.3.3
Highlight Matching Tag (highlight-matching-tag): 0.11.0
JSON Language Features (json-language-features): 1.0.0
Merge Conflict (merge-conflict): 1.0.0
NPM support for VS Code (npm): 1.0.1
Node Debug Auto-attach (debug-auto-launch): 1.0.0
Path Intellisense (path-intellisense): 2.10.0
Prettier - Code formatter (prettier-vscode): 11.0.0
Prettier ESLint (vs-code-prettier-eslint): 6.0.0
TODO Highlight (vscode-todo-highlight): 1.0.5
TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0
Vue Peek (vue-peek): 1.0.2

Remote system
Setting Value
IBM i OS V7R4M0
Tech Refresh n/a
CCSID Origin 65535
Runtime CCSID 65535
Default CCSID 284
SQL Enabled
Source dates Disabled

Enabled features

/QOpenSys/pkgs/bin /usr/bin /QSYS.lib/ILEDITOR.lib /QSYS.LIB /QIBM/ProdData/IBMiDebugService/bin /QOpenSys/QIBM/ProdData/JavaVM/jdk80 /QOpenSys/QIBM/ProdData/JavaVM/jdk11
bash attr GETNEWLIBL.PGM QZDFMDB2.PGM startDebugService.sh 64bit 64bit
chsh iconv
ls setccsid
md5sum tar
sort
stat
tn5250
Shell env
Variants
{
  "american": "#@$",
  "local": "�@$"
}
Errors
[
  {
    "command": "export BUILDLIB=\"QGPL\" && export CURLIB=\"QGPL\" && export USERNAME=\"ESZNAVAADR\" && export HOST=\"chzuri13.rz.ch.zurich.com\" && export HOME=\"/home/ESZNAVAADR\" && export WORKDIR=\"/home/ESZNAVAADR\" && export LIBLS=\"QTEMP ZGPL QGPL KPRODOBJ KDETBOBJ KPRODFNT KDETBDAT KDEP6FNT KDEP6OBJ KDEP6DAT\" && env",
    "code": 1,
    "stderr": "bsh: BUILDLIB=QGPL: is not an identifier",
    "cwd": "/home/ESZNAVAADR"
  },
  {
    "command": "export BUILDLIB=\"QGPL\" && export CURLIB=\"QGPL\" && export USERNAME=\"ESZNAVAADR\" && export HOST=\"chzuri13.rz.ch.zurich.com\" && export HOME=\"/home/ESZNAVAADR\" && export WORKDIR=\"/home/ESZNAVAADR\" && export LIBLS=\"QTEMP ZGPL QGPL KPRODOBJ KDETBOBJ KPRODFNT KDETBDAT KDEP6FNT KDEP6OBJ KDEP6DAT\" && env",
    "code": 1,
    "stderr": "bsh: BUILDLIB=QGPL: is not an identifier",
    "cwd": "/home/ESZNAVAADR"
  },
  {
    "command": "export BUILDLIB=\"QGPL\" && export CURLIB=\"QGPL\" && export USERNAME=\"ESZNAVAADR\" && export HOST=\"chzuri13.rz.ch.zurich.com\" && export HOME=\"/home/ESZNAVAADR\" && export WORKDIR=\"/home/ESZNAVAADR\" && export LIBLS=\"QTEMP ZGPL QGPL KPRODOBJ KDETBOBJ KPRODFNT KDETBDAT KDEP6FNT KDEP6OBJ KDEP6DAT\" && env",
    "code": 1,
    "stderr": "bsh: BUILDLIB=QGPL: is not an identifier",
    "cwd": "/home/ESZNAVAADR"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions