Wednesday, January 8, 2014

How to char type array into unicode string

A char type array that contains a unicode string including numeric characters, it will contain a NULL, NULL entire string to two end

I used the function + (id) stringWithCString: (const char *) cString encoding: (NSStringEncoding) enc

But the document so some explanation
cString
. A C array of bytes The array must end with a NULL character; intermediate NULL characters are not allowed
.
Intermediate string can not contain 0 How can I handle this situation?
Reply:
The reply was deleted at the moderator 2010-09-02 11:23:08

No comments:

Post a Comment