BookmarkSubscribeRSS Feed
Double9
Calcite | Level 5

Actually I know how to save the code into UTF8 encoding(see the picture at bottom),  but it is not so inconvenient. if there any method to change the default encoding to UTF8? Thank you so much.

 

I want :

图像 023.png

 

 

my method to save code to UTF8 encoding, as show below:

aaaa.png

4 REPLIES 4
AnandVyas
Ammonite | Level 13

I don't see there is an option to change that in EG. Below is the info from help menu.

 

Working with Programs
Saving programs
By default, program files are saved as SAS Source Files (*.sas). 
To save existing programs 

Select FileThen Save filename. 

To save a new program or to save an existing program and choose the name and location 

Select FileThen Save filename As. The Save As dialog box opens so that you can choose where to save the file. You can save the file to your local computer or to a SAS server. 

To change the folder in which the file is saved, select the correct folder from the Save in drop-down list. 

In the File name box, type the new name of the file, and click Save. 
Note SAS Enterprise Guide automatically saves the program using its default character encoding when possible. If you want to specify the character encoding that is used when the program is saved, click Down arrow button on the Save button and select Program With Encoding. A list of possible encoding options is displayed in the Select Encoding dialog box. This option is available for both programs saved locally and programs saved on a SAS server.  



Note When you save a program file to a specified location, SAS Enterprise Guide automatically updates the reference to the program file in the project. 
andreas_lds
Jade | Level 19

Unfortunately it is not possible to set a default encoding when saving programs. SAS Studio makes things worse: while EG uses UTF-8-BOM, Studio strips the BOM and uses plain UTF-8. That would not be that bad at all, if EG would be able to use UTF-8 encoded files without BOM at all.

PhilC
Rhodochrosite | Level 12

New in Enterprise Guide v8:

The "Save as" drop down box is in a different place.  The same encoding dialog will display.

 

Capture.JPG

 

PhilC
Rhodochrosite | Level 12
This would be a feature change. You can post to SASware ballot to ask that this feature, in one of its possible forms, can be added to Enterprise Guide. I would vote for it. I don't want to save my file in UTF-8.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 4 replies
  • 2739 views
  • 3 likes
  • 4 in conversation