Problem with string encoding


sir

have problem encoding of strings

strcpy(mycstring, [mynsstring cstringusingencoding:nsunicodestringencoding ]);

cfstringref str1 = cfstringcreatewithcstring(null,mycstring,kcfstringencodingunicode);
nslog((nsstring*)str1);

if unicode string मनज मानमान मानमा.
getting मनज output.
can please me solve problem.


thanking you

sandeep
 

try changing logging code to

code:
  nslog(@"%@", str1);  
and see if expected string back.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Upgrade Eligibility?

need help with itunes 7.7

How to change Apple IDs on iPhones