• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UNICODE problem - conversion creates ill characters _between_ written strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 writeData:[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.

  • Follow-Ups:
    • Re: UNICODE problem - conversion creates ill characters _between_ written strings
      • From: "M. Uli Kusterer" <email@hidden>
References: 
 >Re: Question about line breaks and file types (From: Dustin Voss <email@hidden>)

  • Prev by Date: Re: Question about line breaks and file types
  • Next by Date: Change NSPopUpButton titles in DTJC
  • Previous by thread: Re: Question about line breaks and file types
  • Next by thread: Re: UNICODE problem - conversion creates ill characters _between_ written strings
  • Index(es):
    • Date
    • Thread