SAS Enterprise Guide

Desktop productivity for business analysts and programmers
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-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
  • 4 replies
  • 3164 views
  • 3 likes
  • 4 in conversation