I’m writing string data to a file in which the data should be written in ASCII and then essentially repeated in Unicode. The ASCII portion is working well, but the Unicode version is garbled. Attempts to explicitly create a Unicode string with CFStringCreateMutableWithExternalCharactersNoCopy fail miserably. Advice and sample code appreciated.
Share
You can convert a
CFStringReftoCFDataRefwithCFStringCreateExternalRepresentation, for exampleOr with
NSString/NSData: