Problem Note 18969: Specifying an encoding for the _WEBOUT fileref does not work when you
run a stored process with the Stored Process Server
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
SAS System | SAS Integration Technologies | Microsoft Windows NT Workstation | 9.1 TS1M3 SP1 | |
Microsoft Windows XP Professional | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
64-bit Enabled Solaris | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
Linux on Itanium | 9.1 TS1M3 SP1 | |
Linux | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
z/OS | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
HP-UX IPF | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
64-bit Enabled AIX | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
OpenVMS Alpha | 9.1 TS1M3 SP1 | 9.2 TS1M0 |
Tru64 UNIX | 9.1 TS1M3 SP1 | 9.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.
Type: | Problem Note |
Priority: | high |
Topic: | System Administration ==> Servers ==> Integration Technologies
|
Date Modified: | 2006-12-01 11:00:51 |
Date Created: | 2006-11-13 16:12:42 |