worksofliam / ILEditor

IBM i development environment (IDE)
https://worksofbarry.com/ileditor/
GNU General Public License v3.0
86 stars 29 forks source link

Multilingual support #97

Open uzaemon opened 6 years ago

uzaemon commented 6 years ago

Do you have plan to support language other than English?

I'm using IBM i in DBCS (Japanese) environment. ILEditor crushes when I list source member which have DBCS text. I changed member text to SBCS (English) and could open the source member, but DBCS part of the source text shows [SUB]s. Just for your information, I use CCSID 1399 for both job and source file.

Thank you for your great work! uzaemon@Japan

worksofliam commented 6 years ago

Hi @uzaemon

I am aware of the issue, but sadly do not have an environment to I can fix and test on.

You are more than welcome to open a PR to have a go!

Many thanks, Liam Barry

uzaemon commented 6 years ago

Hello Barry,

Yesterday, I installed Visual Studio for the first time in my life. I read the source code and noticed points below.

Source member and its text are transferred/converted by FTP. When code conversion is necessary, FTP seems to work in ASCII mode. For non-ASCII languages such as Japanese, Chinese, Greek, etc., FTP client should issue "quote type C xxx" where xxx is destination CCSID. To handle most EBCDIC characters, I recommend to set destination CCSID to 1208 (utf-8). Fortunately, AvalonEdit (WPF Text Editor) supports utf-8. (https://www.codeproject.com/Search.aspx?fid=1549544&sbo=fm&qf=unicode&x=0&y=0) EBCDIC CCSID can be found at file CCSID in most cases.

As I'm novice Visual Studio (C#) programmer, I can't open PR... I hope someone can help this issue.

Thank you and have a nice weekend! uzaemon@Japan