bluetoothengine/btmac/src/BTMonoCmdHandler/btmcoperator.cpp
changeset 33 837dcc42fd6a
parent 15 00f9ee97d895
--- a/bluetoothengine/btmac/src/BTMonoCmdHandler/btmcoperator.cpp	Fri May 14 16:01:46 2010 +0300
+++ b/bluetoothengine/btmac/src/BTMonoCmdHandler/btmcoperator.cpp	Thu May 27 13:01:44 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
         {