bluetoothengine/btmac/src/BTMonoCmdHandler/btmcoperator.cpp
branchRCL_3
changeset 20 2f88a7d66f50
parent 10 0707dd69d236
child 21 53b7818cd282
--- a/bluetoothengine/btmac/src/BTMonoCmdHandler/btmcoperator.cpp	Tue Apr 27 16:49:44 2010 +0300
+++ b/bluetoothengine/btmac/src/BTMonoCmdHandler/btmcoperator.cpp	Tue May 11 16:23:08 2010 +0300
@@ -20,6 +20,7 @@
 #include "btmcprotocol.h"
 #include <mmtsy_names.h>
 #include "debug.h"
+#include <utf.h>
 
 // -----------------------------------------------------------------------------
 // CBtmcOperator::NewL
@@ -90,8 +91,12 @@
         {
         LEAVE_IF_ERROR(params.Append(TATParam(0)));
         TBuf8<KMaxOperatorNameLength> buf8;
-        buf8.Copy(iInfo.iName); // need Unicode convert?
-        LEAVE_IF_ERROR(params.Append(TATParam(buf8, EATDQStringParam)));
+        buf8.Copy(iInfo.iName); //  Unicode convert:		
+		TBuf16<KMaxOperatorNameLength> buf16;
+        TBuf8<KMaxOperatorNameLength> buf8Copy;        
+        LEAVE_IF_ERROR(CnvUtfConverter::ConvertToUnicodeFromUtf8(buf16,buf8));
+        buf8Copy.Copy(buf16);
+        LEAVE_IF_ERROR(params.Append(TATParam(buf8Copy, EATDQStringParam)));	
         }
     else
         {