Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-21-2009, 01:21 PM   #1 (permalink)
john855
Registered Member
 
Join Date: Nov 2008
Posts: 131
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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,357
Threads: 39,153
Posts: 171,637
Top Poster: smasher (2,577)
Welcome to our newest member, davidm
Powered by vBadvanced CMPS v3.1.0

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