UNICODE problem - conversion creates ill characters _between_ written strings
UNICODE problem - conversion creates ill characters _between_ written strings
- Subject: UNICODE problem - conversion creates ill characters _between_ written strings
- From: "seaside.ki" <email@hidden>
- Date: Tue, 5 Aug 2003 02:14:22 +0200
My app reads some text data and converts it to some file using String
Encoding
functionality.
If I use ASCIIEncoding, results are ok for english texts.
If I use MacOSClassicRoman, results are ok for german texts as well.
If I use NSUnicodeStringEncoding - which should be the best
catch all solution, I thought - most text seems to be ok.
_Between_ the individual strings, I write to file using
[outFile write
Data:[outString dataUsingEncoding:currentEncoding]];
there are ill characters. The strings themselfs seem to be
ok. Simply 1-2 charactes between each unicode written string.
Do I have to take special precaution to write UNICODE?
Should I collect whole string first and the print it using UNICODE
in one big writeData step?
PS: I suppose this problem is due to some byte coding stuff written
behind/before UNICODE string. Any technical details are welcome!
Stefan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.