escape sequences for \

1 view
Skip to first unread message

Sand

unread,
Jun 1, 2009, 5:06:16 AM6/1/09
to rocket-gwt
Hi

I am facing a problem with escape sequences for \
I am having a object which takes user object. In this user object
address field is there.
When user adds address as follows

R.S. No 100\12\123\3

And when rocket sends back the address to display at client side, it
replaces numbers after slash with respective ASCII characters.e.g.\12
is repaced by new line and \123 is replaced by S

Thanks & Regards
Sandeep Patil

Sand

unread,
Jun 1, 2009, 5:35:30 AM6/1/09
to rocket-gwt
Hi Again,

I have done a small change in Utilities.htmlDecode() method, where we
iterate through each character.
if('\\'==c){
buf.append('\\');
}

Miroslav: Do you think this change will cause any other problem?

Thanks & Regards
Sandeep Patil

Miroslav Pokorny

unread,
Jun 1, 2009, 7:51:48 PM6/1/09
to rocke...@googlegroups.com, rocket-gwt
Hi

No should be good if all it does is make sure backslash comes thru
right it should be fine. just run the tests...

Hth.
Reply all
Reply to author
Forward
0 new messages