Text transcode from source file member #1035
-
Opening a RPGLE source file in a member with a CCSID = 280 the editor fail to translate some char with accents or particular symbols like § or à and replace them with <?>. The iSeries connection user has profile CCSID 280 but i tried also with 1144 with no luck. Extension version: 1.6.13 System Info
A/B Experiments
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 26 replies
-
Hi @lucat73 I would suggest you ensure that your IBM i is configured properly. Check out our docs to see how to do that: https://halcyon-tech.github.io/docs/#/pages/tips/ccsid People have this all the time and it's an easy fix: #1032 |
Beta Was this translation helpful? Give feedback.
-
Hi @worksofliam, thanks for the quick reply. I followed the docs also setting up the env variables for PASE as: but still not be able to transcode correctly. |
Beta Was this translation helpful? Give feedback.
-
I can't recreate the problem here - we need more info... To reduce the debug output, first copy the source file and member into a new source file and delete all lines in the member except the first 20 lines (containing the special characters). Then create a new filter in VS Code having only that source file. After this, open and clear the output channel for Code for IBM i: Then click on the member and open it and show us all the output from this channel.
Also provide us with the output from DSPUSRPRF page 5 - mine looks like this (while testing):
|
Beta Was this translation helpful? Give feedback.
-
I run the command directly in QSHELL and it seems ok: I don't know if the lack of EN_UTF8 locale it's a problem, but the output of the SQL statement is correct. |
Beta Was this translation helpful? Give feedback.
-
@chrjorgensen @worksofliam unfortunately in my case I cannot set the system CCSIDs (SYSVAL, ENVVAR for SSH, FTP, ...) villy nilly without breaking old grimy stuff because there are many "grown" programs of 30 years which had/have to work with a SYSVAL of 65535 which is lol and sad. At the moment I am happy that I set my user profile to a different CCSID and
The funny thing is without SQL enabled the *FILE variable knows, that the source file is 273 and converts it correctly for displaying, changing and saving. How about still use the cast but with 65535 as default, with an overrule variable in the settings? I tried it with the IBMiContent Aliasing/select statement - viewed in Hex, but I have no source file in 65535 ...
Documentation like 'try first with CCSID 37 as cast overrule because it is the default codepage for data saved as CCSID 65535' |
Beta Was this translation helpful? Give feedback.
-
Hi, I think I found another solution. I went through the data transfer commands and found, that my problems arise during the sftp file transfer. My proposed solution would be:
Would that be possible without problems for the other users? Thank you. Best regards, |
Beta Was this translation helpful? Give feedback.
-
hi, My user is set to CCSID 273. When this code is being executed A bit brute force ....
And also this part (because 819 and 1252 are not UTF-8? I do not know the reason for their inclusion but for me 819/1252 are ISO-8859-1/15 which breaks data read and saved again as UTF-8 files)
|
Beta Was this translation helpful? Give feedback.
Hi @lucat73
I would suggest you ensure that your IBM i is configured properly.
Check out our docs to see how to do that: https://halcyon-tech.github.io/docs/#/pages/tips/ccsid
People have this all the time and it's an easy fix: #1032