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

Re: \u000d problems


  • Subject: Re: \u000d problems
  • From: Ricardo Strausz <email@hidden>
  • Date: Mon, 18 Aug 2003 13:43:45 -0500

I use the new line code '\n' to that...
why it does not function for you?

On lunes, agos 18, 2003, at 10:48 America/Mexico_City, Nathan Dumar wrote:

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.
_______________________________________________
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.

References: 
 >\u000d problems (From: Nathan Dumar <email@hidden>)

  • Prev by Date: Re: Problems using primary key as attribute
  • Next by Date: Re: Problems using primary key as attribute
  • Previous by thread: \u000d problems
  • Next by thread: Re: \u000d problems
  • Index(es):
    • Date
    • Thread