Problem Note 36269: Inconsistent transcoding using the KCVT function produces incorrect results in SAS® 9.2
Inconsistency exists between transcoding in SAS® 9.1.3 and SAS 9.2 for some of SJIS punctuation characters.
The example below uses the KCVT function and illustrates the problem. In SAS 9.2, transcoding does not handle the Unicode x301c character properly:
data;
x='8160'x ; * '~';
un1=kcvt(x,'sjis','ucs2b');
sj1=kcvt(un1,'ucs2b','sjis');
put un1= $hex4. sj1=;
un2=unicodec(x);
sj2=unicode(un2);
put un2= sj2=;
y='301c'x ; * unicode tilde ;
sj3=kcvt(y,'ucs2b','');
put sj3 = sj3 ;
sj4=unicode(y,'utf16b');
put sj4= sj4;
run;
9.1.3 Result:
un1=301C sj1=~
un2=\uFF5E sj2=~
sj3=~ ~
sj4=~ ~
9.2 Result:
un1=FF5E sj1=~
un2=\uFF5E sj2=~
sj3=
sj4=~ ~
The results in SAS 9.1.3 are correct. The results in SAS 9.2 are incorrect.
A hotfix is planned for this issue.
Operating System and Release Information
SAS System | Base SAS | Windows Vista for x64 | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Windows Vista | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft Windows XP Professional | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP3 | 9.1 TS1M3 SP4 |
*
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 |
Date Modified: | 2009-06-22 13:50:30 |
Date Created: | 2009-06-18 11:19:02 |