The file preview is incorrect when you select "Default Encoding" in SAS® Enterprise Guide® 8.6


In SAS Enterprise Guide 8.6, an issue occurs when you select File ► Open ► File location ► Open as: Program with encoding ► Encoding: Default Encoding. The Default Encoding preview that is displayed is incorrect if the encoding of the file does not match the default encoding (UTF-8) that is currently set in SAS Enterprise Guide. 

When this issue occurs, the preview is not displayed in the SAS Enterprise Guide 8.6 Default Encoding set. In addition, the encoding of the file does not alert you when you select the incorrect encoding, which could then cause further issues when running the program.

For example, this issue occurs when you complete steps similar to the following:

  1. In SAS Enterprise Guide 8.6, select File ► Open ► My Computer ► Open as: Program with encoding.
  2. Navigate to the ANSI.sas code (the code that does not use the default UTF-8 encoding) and click Open.
  3. Select Encoding: Default Encoding. The preview displays the desired code, and the special characters are correct, but the preview does not use the Default Encoding of UTF-8.
    The preview displays the desired code, and the special characters are correct, but the preview does not use the Default Encoding of UTF-8.
    The same code is displayed in SAS Enterprise Guide incorrectly with non-printable characters. As a result, the code does no run with correct results. (That is, special characters are displayed as ">>>>".)
    The same code is displayed in SAS Enterprise Guide incorrectly with non-printable characters. The special characters are displayed as ">>>>".

Note that other encodings that use the Select Encoding are correct. This issue is specific to the preview for the Default Encoding, which is incorrect.

This issue occurs in only SAS Enterprise Guide 8.6. To circumvent this issue, apply SAS Enterprise Guide 8.6 Update 1 or later.