sassoftware / vscode-sas-extension

This SAS Extension for Visual Studio Code provides support for the SAS language, including features such as SAS syntax highlighting, code completion, hover help, code folding, outline, SAS code snippets and run SAS code.
https://sassoftware.github.io/vscode-sas-extension/
Apache License 2.0
117 stars 47 forks source link

It cannot support non-U8 encoding very well errors or garbage characters happened if having a specific sasv9 config #1106

Open Zhirong2022 opened 2 months ago

Zhirong2022 commented 2 months ago

Describe the bug Open VSC SAS Extension base on main branch. Issue1:Trying to open table 'Class' under library 'SASHELP', error is thrown. Issue2:The generated table has garbage characters

Steps to reproduce Update sasv9.cfg at C:\Program Files\SASHome\SASFoundation\9.4 as below -config "C:\Program Files\SASHome\SASFoundation\9.4\nls\zh\sasv9.cfg"

Issue1#

  1. Open VSC SAS Extension
  2. Specify the connection as SAS9.4(Local)
  3. Load the library
  4. Open CLASS table under SASHELP Issue2# 1.run code below
    
    data test;
    input city $;
    cards;
    北京
    ;
    run;

2.Open test under WORK

**Expected behavior**
It can support non-U8 encoding well

**Screenshots**
![image](https://github.com/user-attachments/assets/a3ce1c75-7992-44ed-a786-057e7f7f6687)

**Environment (please complete the following information):**
Client OS: [e.g. Windows 11]
Extension version: [e.g. v1.10.0]