vscode-ibmi icon indicating copy to clipboard operation
vscode-ibmi copied to clipboard

Unable to open member with "color codes" and german characters

Open LGSDEVS opened this issue 3 years ago • 15 comments

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: bugvsc

german characters grafik

LGSDEVS avatar Sep 08 '22 12:09 LGSDEVS

  1. Check out this page to ensure your system is setup correctly: https://halcyon-tech.github.io/vscode-ibmi/#/pages/tips/ccsid
  2. There is a VS Code setting to enable legacy colours in VS Code.

worksofliam avatar Sep 08 '22 13:09 worksofliam

I have activated the settings, unfortunately without success.

grafik

LGSDEVS avatar Sep 08 '22 15:09 LGSDEVS

@LGSDEVS Did you also fix your env vars?

worksofliam avatar Sep 15 '22 19:09 worksofliam

@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 avatar Sep 19 '22 11:09 LGSDEVS

@LGSDEVS can you give it a try anyway, and let us know what you find?

worksofliam avatar Sep 19 '22 12:09 worksofliam

Also, is SQL enabled and what CCSID is the source file?

worksofliam avatar Sep 19 '22 12:09 worksofliam

SQL is not active: grafik

CCSID is 1141

grafik

LGSDEVS avatar Sep 19 '22 14:09 LGSDEVS

@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 avatar Sep 19 '22 17:09 worksofliam

@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 avatar Sep 20 '22 09:09 LGSDEVS

@LGSDEVS Do you get the same result if you enable SQL and try to open the member again?

worksofliam avatar Sep 21 '22 03:09 worksofliam

grafik The same problem exists with the setting.

LGSDEVS avatar Sep 21 '22 09:09 LGSDEVS

@LGSDEVS before I ask about setting up a zoom, did you try setting the environment variables and restarting SSH as mentioned in the docs?

worksofliam avatar Sep 21 '22 12:09 worksofliam

I have the same issue with the special colour characters too. image image

DannyRidgway avatar Sep 27 '22 12:09 DannyRidgway

@DannyRidgway what is the source file CCSID and do you have source dates enabled or disabled?

worksofliam avatar Sep 27 '22 13:09 worksofliam

@LGSDEVS @DannyRidgway Any chance you can recreate this on pub400 and give me access to your libraries? My user profile is BARRY on there.

worksofliam avatar Sep 27 '22 13:09 worksofliam