[urString cStringUsingEncoding:NSUTF16LittleEndianStringEncoding]
wchar_t
is compiler specific. Assuming you wan the Win32 wchar_t
, then UTF16 little ending encoded will do it. For Unix wchar_t
you may need the NSUTF32 encoding family, with your platform of choice endianess.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…