Index: src/doc/PdfDifferenceEncoding.cpp
===================================================================
--- src/doc/PdfDifferenceEncoding.cpp	(revision 1967)
+++ src/doc/PdfDifferenceEncoding.cpp	(working copy)
@@ -2569,17 +2569,12 @@
     }
 
     memcpy( pszUtf16, str.GetUnicode(), lLen * sizeof(pdf_utf16be) );
-
+	const unsigned char* pszString = (unsigned char*) rEncodedString.GetString();
     for( pdf_long i=0;i<lLen;i++ ) 
     {
-        pdf_utf16be val = pszUtf16[i];
-#ifdef PODOFO_IS_LITTLE_ENDIAN
-        val = ((val & 0xff00) >> 8) | ((val & 0xff) << 8);
-#endif // PODOFO_IS_LITTLE_ENDIAN
-
         PdfName     name;
         pdf_utf16be value;
-        if( m_differences.Contains( static_cast<int>(val), name, value ) )
+        if( m_differences.Contains( static_cast<int>(pszString[i]), name, value ) )
             pszUtf16[i] = value;
     }
 
