NSString转换成wchar_t

	NSStringEncoding enc = CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030_2000);

	NSString *strName = [[NSString alloc] initWithCString:pChar encoding:enc];

	NSLog(@"%@",strName);

	wchar_t *pWChar = (wchar_t*)[strName cStringUsingEncoding:NSUTF32StringEncoding];

	[strName release];


你可能感兴趣的:(NSString)