• 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
Re: UNICODE problem - conversion creates ill characters _between_ written strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UNICODE problem - conversion creates ill characters _between_ written strings


  • Subject: Re: UNICODE problem - conversion creates ill characters _between_ written strings
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 5 Aug 2003 05:16:19 +0200

At 2:14 Uhr +0200 05.08.2003, seaside.ki wrote:
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?

Two possibilities:

1) They're BOM markers, indicating byte-order of two-byte Unicode characters. In that case, you'll have to use some API that gives you an "internal" instead of the "external" representation you have right now.

2) writeData behaves differently than you expect. I don't have the docs at hand, bout double-clicking on writeData with the option key down in Project Builder should bring up the docs, and there it'll say whether writeData just writes the raw data, or whether it perhaps writes length information before the data as well.

If these don't fit the bill, it might be nice to see some example text. Which of the following is it?

v*e*r*y* *a*b*s*o*l*u*t*e*l*y*
**very**absolutely
. . .

("*" indicates a garbage byte, "very" and "absolutely" are two separate strings written)

--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.

References: 
 >UNICODE problem - conversion creates ill characters _between_ written strings (From: "seaside.ki" <email@hidden>)

  • Prev by Date: Re: Help: Waiting for other thread to finish?
  • Next by Date: cell backgroundColor in OutlineView
  • Previous by thread: UNICODE problem - conversion creates ill characters _between_ written strings
  • Next by thread: Re: Question about line breaks and file types
  • Index(es):
    • Date
    • Thread