title: SAS session encoding LATIN1 failing for unicode characters
body: <p>My SAS session details are:-</p>
  <p><em>ENCODING=LATIN1<br />
  LOCALE=EN_US</em></p>
  <p>I am reading encrypted customer names, decrypting them using a java code that has
  been implemented in the sas code using javaobj.</p>
  <pre><code>data outlib.X1 ( ENCODING =  'asciiany' );
  set inlib.INP1 (ENCODING = 'asciiany' )   end=eof;
  length decryptedvalue  $100;
  declare javaobj jObj(&quot;&lt;jarname&gt;&quot;);
  jObj.callstringmethod(&quot;&lt;method&gt;&quot;, FIRST_NAME , decryptedvalue);
  run;
  </code></pre>
  <p>The jObj.callstringmethod returns the decrypted first_name value in the string decryptedvalue. I do a proc export at the end of my SAS code and store all the decrypted names as csv files.</p>
  <p>In the last run some of the names have special characters e.g. RÉAL.</p>
  <p>This is causing SAS execution to fail with following error :-</p>
  <blockquote>
  <p>ERROR: Transcoding failure at line 30 column 2.</p>
  <p>ERROR: DATA STEP Component Object failure.  Aborted during the EXECUTION phase.</p>
  </blockquote>
  <p>Is there some way to make SAS session (LATIN1) accept these unicode characters? Can i set
  the encoding of the decryptedvalue variable? I dont want to run my entire SAS session in unicode using sas_u8. I only want to accept these characters
  Even reading these problematic values as blank is ok.</p>
  <p>I have already tried following things :-</p>
  <ol>
  <li><p>Set  inencoding= utf8  for the libname</p>
  </li>
  <li><p>Make ENCODING =  'asciiany' for the input dataset.</p>
  </li>
  </ol>
  <p>Any inputs would be useful.</p>
  <p>Thanks in advance!</p>