XDMEngine/src/XdmNodeAttribute.cpp
branchRCL_3
changeset 14 de84881f4ac3
parent 0 c8caa15ef882
--- a/XDMEngine/src/XdmNodeAttribute.cpp	Wed Apr 14 16:22:17 2010 +0300
+++ b/XDMEngine/src/XdmNodeAttribute.cpp	Tue Apr 27 17:03:39 2010 +0300
@@ -19,6 +19,8 @@
 
 
 // INCLUDE FILES
+#include <escapeutils.h>
+
 #include "XdmEngine.h"
 #include "XdmNodeFactory.h"
 #include "XdmNodeAttribute.h"
@@ -142,14 +144,19 @@
 //
 EXPORT_C void CXdmNodeAttribute::SetAttributeValueL( const TDesC8& aAttributeValue )
     {
+    // change to UNICODE from UTF8 format
+    HBufC* unicode = EscapeUtils::ConvertToUnicodeFromUtf8L( aAttributeValue );
+    CleanupStack::PushL( unicode );
+    
     #ifdef _DEBUG
         iXdmEngine.WriteToLog( _L8( "CXdmNodeAttribute::SetAttributeValueL() - Value: %S" ),
-                                &aAttributeValue );
+                                unicode );
     #endif
     delete iAttributeValue;
     iAttributeValue = NULL;
-    iAttributeValue = HBufC::NewL( aAttributeValue.Length() );
-    iAttributeValue->Des().Copy( aAttributeValue );
+    iAttributeValue = HBufC::NewL( unicode->Length() );
+    iAttributeValue->Des().Copy( *unicode );
+    CleanupStack::PopAndDestroy( unicode );
     }