vscode-ibmi
vscode-ibmi copied to clipboard
Unable to open member with "color codes" and german characters
Describe the bug I use color codes to mark the source code, unfortunately the VSC can't handle it. Also, special characters from the German language such as the "ß" are not recognized and output correctly.
Screenshots
color codes:

german characters

- Check out this page to ensure your system is setup correctly: https://halcyon-tech.github.io/vscode-ibmi/#/pages/tips/ccsid
- There is a VS Code setting to enable legacy colours in VS Code.
I have activated the settings, unfortunately without success.

@LGSDEVS Did you also fix your env vars?
@worksofliam We use OS version 7.4, according to the document you linked, there should be no problems with it. Setting environment variables -> 7.4 and above defaults to UTF-8 and there should be no issue.
@LGSDEVS can you give it a try anyway, and let us know what you find?
Also, is SQL enabled and what CCSID is the source file?
SQL is not active:

CCSID is 1141

@LGSDEVS Are you able to do a hex dump of that source member so I can do some further investigation? It likely has something to do with the conversion from EBCDIC to 1208 that is causing the colours to not work.
@worksofliam Here is part of the dump, if more are needed I can supply the rest.
000100030605 * direkt vor dem * steht das Attribute-Byte für grün
FFFFFFFFFFFFF444425488989A4A994889454AA88A488A4CAA988AA86CAA848D9489D94444444444444444444444
000100030605F00000C0499523056904540C02358304120133992435028350609079050000000000000000000000
000200030605 * Hex 20
FFFFFFFFFFFF4444425444444444444444C8A4FF4444444444444444444444444444444444444444444444444444
000200030605000000C0000000000000008570200000000000000000000000000000000000000000000000000000
000300030605
FFFFFFFFFFFF44444444444444444444444444444444444444444444444444444444444444444444444444444444
00030003060500000000000000000000000000000000000000000000000000000000000000000000000000000000
000400030605 * direkt vor dem * steht das Attribute-Byte für rose
FFFFFFFFFFFF4444435488989A4A994889454AA88A488A4CAA988AA86CAA848D9499A84444444444444444444444
000400030605000008C0499523056904540C02358304120133992435028350609096250000000000000000000000
000500030605 * Hex 38
FFFFFFFFFFFF4444435444444444444444C8A4FF4444444444444444444444444444444444444444444444444444
000500030605000008C0000000000000008570380000000000000000000000000000000000000000000000000000
000600971231
FFFFFFFFFFFF44444444444444444444444444444444444444444444444444444444444444444444444444444444
00060097123100000000000000000000000000000000000000000000000000000000000000000000000000000000
000700030605 * direkt vor dem * steht das Attribute-Byte für weis
FFFFFFFFFFFF4444425488989A4A994889454AA88A488A4CAA988AA86CAA848D94A88A4444444444444444444444
000700030605000002C0499523056904540C02358304120133992435028350609065920000000000000000000000
000800030605 * Hex 22
FFFFFFFFFFFF4444425444444444444444C8A4FF4444444444444444444444444444444444444444444444444444
000800030605000002C0000000000000008570220000000000000000000000000000000000000000000000000000
000900971231
FFFFFFFFFFFF44444444444444444444444444444444444444444444444444444444444444444444444444444444
00090097123100000000000000000000000000000000000000000000000000000000000000000000000000000000
001000030605 * direkt vor dem * steht das Attribute-Byte für rot
FFFFFFFFFFFF4444425488989A4A994889454AA88A488A4CAA988AA86CAA848D9499A44444444444444444444444
001000030605000008C0499523056904540C02358304120133992435028350609096300000000000000000000000
@LGSDEVS Do you get the same result if you enable SQL and try to open the member again?
The same problem exists with the setting.
@LGSDEVS before I ask about setting up a zoom, did you try setting the environment variables and restarting SSH as mentioned in the docs?
I have the same issue with the special colour characters too.

@DannyRidgway what is the source file CCSID and do you have source dates enabled or disabled?
@LGSDEVS @DannyRidgway Any chance you can recreate this on pub400 and give me access to your libraries? My user profile is BARRY on there.