SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Ethan2
Calcite | Level 5

Hi Communities,

 

I'm trying to explore different ways to open programs for better user experience.Is there a way to configure the server to force UTF-8 encoding when opening files with drag-and-drop method when Unicode Server connected?

 

Everything works fine when I open the program using the 'Server' window of SAS EG or open it with encoding. But when I drag the file directly into the SAS EG editor it gets grabled.

 

I understand it might be because SAS EG didn't find the best display encoding correctly. However, as the file tree becomes more complex, the drag-and-drop method can better meet the business needs.

 

We have also configured three encoding servers through SAS Management(Unicode, English, Chinese), but it doesn't seem to control which sas files encoding is used on by default.

 

Please see the appendix files. When I open the program.sas from SASEG it shows normal as shown in snipshot 1. But when I drag the file directly into SASEG, there are garbled characters as shown in snipshot 2.

 

Info:
SASOA installed in the Red Hat Linux system environment.
SASEG installed in the Windows Citrix VDI.
Share files via Samba.

 

Ethan

 

/***********************************************************************************************
有效路径   : 
程序名     : CM.sas 
语言/版本  : SAS94_UTF8
简要描述   : 
作者       : 
日期       : 22FEB2021
输入       : 
输出       : CM.sas7bdat
宏调用     :
修改日志    :
版本  修改人      日期       描述
***********************************************************************************************/

 

Figure 1.pngFigure 2.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ethan2
Calcite | Level 5

According to SAS Technical Support's reply, currently there no way to do that.

 

At present, the better way I found is to save the UTF8 encoded file as UTF8-BOM, so that it can be directly dragged into SAS EG without garbled characters。

View solution in original post

1 REPLY 1
Ethan2
Calcite | Level 5

According to SAS Technical Support's reply, currently there no way to do that.

 

At present, the better way I found is to save the UTF8 encoded file as UTF8-BOM, so that it can be directly dragged into SAS EG without garbled characters。

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 706 views
  • 0 likes
  • 1 in conversation