• 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
NSAttributedString error....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSAttributedString error....


  • Subject: NSAttributedString error....
  • From: "Steven M.Palm" <email@hidden>
  • Date: Thu, 30 Jan 2003 10:03:15 -0600

When trying to us an NSAttributedString as follows:

attribText = [[NSAttributedString alloc] initWithHTML:[NSData dataWithBytes:[myTextfield cString] length:[myTextField cStringLength]] documentAttributes:NULL];
if (nil != attribText) {
sockprintf("%s\r\n\r\n", [[attribText string] cString]);
} else {
sockprintf("Plain text not available.\r\n\r\n");
}

I get the error in the Run Window of Project Builder:

Conversion to encoding 30 failed for string "30 \\u044f\\u043d\\u0432\\u0430\\u0440\\u044f 2003\\u0433. \\u2116 1..."

And my Application just sits there unresponsive until I kill it. Neither case of the /if/ test is executed.

-----------------------
- Steven M. Palm
- Ham Radio Call: N9YTY
-----------------------
_______________________________________________
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: NSAttributedString error....
      • From: Aki Inoue <email@hidden>
    • Re: NSAttributedString error.... [a solution]
      • From: "Steven M.Palm" <email@hidden>
  • Prev by Date: Problem with JCE
  • Next by Date: Re: Continue Debugging
  • Previous by thread: Problem with JCE
  • Next by thread: Re: NSAttributedString error.... [a solution]
  • Index(es):
    • Date
    • Thread