SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 18969: Specifying an encoding for the _WEBOUT fileref does not work when you run a stored process with the Stored Process Server

DetailsHotfixAboutRate It

When you run a stored process with the Stored Process Server, any encoding value that you specify for the _WEBOUT fileref will be ignored. For example, in the following code, ENCODING='UTF-8' (in the FILE statement) is ignored:

data _null_; rv=appsrv_header("Content-type", "text/html; charset=UTF-8"); run; data _null_; file _webout encoding='utf-8'; put '<HTML>'; put '<HEAD><TITLE>Hello World!</TITLE></HEAD>'; put '<BODY>'; put '<H1>¡Hello World UTF-8!</</H1>'; put '<H1>' 'A1'x 'Hello World UTF-8!</H1>'; put '</BODY>'; put '</HTML>'; run;

The Stored Process Server first searches the metadata for the encoding value. If the default session encoding is not set in the metadata, the Stored Process Server then queries the Foundation SAS session for the default encoding of the system's locale.(For example, if the locale is Japanese_Japan, then the default encoding is Shift-JIS.) This default encoding is a server-wide parameter, so all requests use that encoding.

NOTE: In SAS® 9.2, you can set the default session encoding via SAS Management Console.

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS Integration TechnologiesMicrosoft Windows NT Workstation9.1 TS1M3 SP1
Microsoft Windows XP Professional9.1 TS1M3 SP19.2 TS1M0
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP19.2 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP19.2 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP19.2 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP19.2 TS1M0
Microsoft Windows 2000 Server9.1 TS1M3 SP19.2 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP19.2 TS1M0
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP19.2 TS1M0
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP19.2 TS1M0
Microsoft Windows 2000 Professional9.1 TS1M3 SP19.2 TS1M0
64-bit Enabled Solaris9.1 TS1M3 SP19.2 TS1M0
Linux on Itanium9.1 TS1M3 SP1
Linux9.1 TS1M3 SP19.2 TS1M0
z/OS9.1 TS1M3 SP19.2 TS1M0
64-bit Enabled HP-UX9.1 TS1M3 SP19.2 TS1M0
HP-UX IPF9.1 TS1M3 SP19.2 TS1M0
64-bit Enabled AIX9.1 TS1M3 SP19.2 TS1M0
OpenVMS Alpha9.1 TS1M3 SP19.2 TS1M0
Tru64 UNIX9.1 TS1M3 SP19.2 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.