• 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
\u000d problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

\u000d problems


  • Subject: \u000d problems
  • From: Nathan Dumar <email@hidden>
  • Date: Mon, 18 Aug 2003 11:48:00 -0400

Hello all,

I'm trying to encode a carriage return into a string, but cannot figure out how. When I put the unicode number for it, it is interpreted as a carriage return instead of as a character to add to the string. For example:

aStringBuffer.append("\u000d");

or

String cr = new String("\u000d");

get errors for an unclosed string literal and ")" expected. How do I get a carriage return character into a string variable? or is it not possible for the type String to include that character?

(If you're curious, it's for a text output to a WOText, which will be used in a word processor mail merge for labels.)

Thanks,
Nathan

email@hidden
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: \u000d problems
      • From: Ricardo Strausz <email@hidden>
  • Prev by Date: RE: WO books
  • Next by Date: Re: Detecting crash and autorestart
  • Previous by thread: Re: WO build queries
  • Next by thread: Re: \u000d problems
  • Index(es):
    • Date
    • Thread