Problem Note 45414: The JAVAIMG device driver has problems with UTF-8 ENCODING and some LOCALE values on Linux
The JAVAIMG device driver does not work properly in SAS® 9.3 on Linux if the ENCODING option is UTF-8 and the LOCALE option is de_DE (German) or fr_FR (French). You might receive the following error message in this scenario:
ERROR: Java class generated an exception.
org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
If you encounter this problem, you should be able avoid it by adding the following statement before the code that uses the JAVAIMG device driver:
One scenario where you might encounter this problem is
when the JAVAIMG device driver is used in a SAS® Stored Process when the SAS® Stored Process Server is running with UTF-8 ENCODING and your Web browser is using the German or French language.
If the SAS Stored Process Server is running with UTF-8 encoding, then
when a user submits a request from their Web browser, a parameter called
_USERLOCALE (which indicates the Web browser's language setting) is passed
to the SAS Stored Process Server. Then, the SAS LOCALE option is automatically set to the _USERLOCALE value. So, the LOCALE setting for one user request might be diferent than the LOCALE setting for another user request
depending on the language setting of their Web browser.
The following code should avoid this problem:
options LOCALE=en_US; /* <=== Add this line to Avoid the Problem */
ods html file='test.html' path="/tmp" ;
options dev=javaimg;
goptions device=javaimg;
proc gchart data=sashelp.retail;
pie3d year/sumvar=sales;
run;
ods html close;
/* You can reset the LOCALE option back to the */
/* original value here if you like. */
Operating System and Release Information
SAS System | SAS/GRAPH | Linux for x64 | 9.3 TS1M0 | |
Linux | 9.3 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.
The JAVAIMG device driver does not work properly in SASĀ® 9.3 on Linux if the ENCODING option is UTF-8 and the LOCALE option is de_DE (German) or fr_FR (French). You might receive the following
error message in this scenario:
ERROR: Java class generated an exception.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2012-03-26 10:36:12 |
Date Created: | 2012-01-17 11:47:41 |