Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-21-2009, 02:21 PM   #1 (permalink)
john855
Registered Member
 
Join Date: Nov 2008
Posts: 148
Default how to get UTF-16 from NSString

I have a line of code:

const char *cStr = [clearText UTF8String];

and I want to get the utf16string instead, but can't find an easy way to do this. I know NSString uses UTF-16 internally so I can't figure why this is so difficult.
john855 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,677
Threads: 89,155
Posts: 380,392
Top Poster: BrianSlick (7,110)
Welcome to our newest member, Buster2000
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:15 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.