Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New line character for SMS messages?

 
SAFROLE YUTANI
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using JavaMail to send an SMS message to my ATT phone. The message is consumed by the phone sucessfully, but I can't seem to generate a new line in the message. I've used \n, \r, but nothing seems to work. I even tried (char)13, which is the ASCII code for \n, I think!
 
a sanjuan
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you try \0x0A
might work, never had to worry about that myself so this is something i just found.
 
SAFROLE YUTANI
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried that, and here's what happened (strange)...
In my program, I set the message text with something like...
message.setText("Hello \0x0A World!");
...and after the message is sent and displayed on my phone, it reads...
Hello

The "World" part is missing. Strange. Any ideas?
Tahanks
 
a sanjuan
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually, no...i've never had to use that so am not sure...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic