[android-developers] Re: \n escape character not working
I'm not sure if you're passing in an illegal character, as \n is not
accepted. See RFC 1738 2.1 and 2.2.
http://www.ietf.org/rfc/rfc1738.txt
You probably need to URLEncode to escape characters such as "\n":
http://developer.android.com/reference/java/net/URLEncoder.html
Hope this helps,
Josh
On Sep 25, 3:55 am, wes <wemme...@gmail.com> wrote:
> I've seen another question posted here about this, but the guy never
> responded. I, however will get responses by email and am serious about
> getting help here.
>
> In creating an app that will pass form information to an email, I have
> concatenated all of the labels for the email, the information from the
> text boxes, and then the escape character "\n".
>
> The only problem is that for an HTC Evo Shift 4G the email stops
> IMMEDIATELY on the first escape character, and displays only the first
> line.
>
> The escape charaters: \r (carriage return) \v (vertical tab) also do
> not work. adding a double slash on the characters \\n \\r \\v do not
> work either. And if I dump the entire email URI into a text box BEFORE
> the email it is 100% correct, something happens either during or
> before the pass into email.
>
> Does anyone know how to implement an escape character while inside a
> URI or as an email body text . . . or anything at all that can
> implement an escape character.
>
> Thank you
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home