How to get around "=" encoded as "\u003d"?

12,002 views
Skip to first unread message

Oscar

unread,
May 25, 2011, 7:02:43 PM5/25/11
to google-gson
So, there's a thread on this already:
http://groups.google.com/group/google-gson/browse_thread/thread/2431d4a3d0d6cb23/e832af63c55aa842?lnk=gst&q=tojson#e832af63c55aa842

However, there doesn't seem to be an option for me to post a follow up
question about it,

The data in question is an encrypted string item, which must be posted
with the '=' as is.
Of course, I can code around this, but rather if there was a built-in
gson way to do it.

Escaping the '=' char doesn't work, I would like gson to just leave
the string item alone.

Any suggestions?

Jesse Wilson

unread,
May 26, 2011, 2:17:46 AM5/26/11
to googl...@googlegroups.com

Oscar

unread,
May 26, 2011, 12:26:27 PM5/26/11
to google-gson
Hey good stuff! It worked. I was trying JsonWriter.setHTMLSafe() for
some reason and that didn't seem to work, obviously..

Thanks again! Good way to start a Thursday.

On May 25, 11:17 pm, Jesse Wilson <jessewil...@google.com> wrote:
> Try calling disableHtmlEscaping() on your GsonBuilder.http://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/go...()

Bo

unread,
Jun 7, 2011, 5:30:58 AM6/7/11
to google-gson
WOW thanks man, I meet the problem about converting " ' " back to
json, it will show it's ASC-II value
Now it works fine here, cheers

On May 26, 2:17 pm, Jesse Wilson <jessewil...@google.com> wrote:
> Try calling disableHtmlEscaping() on your GsonBuilder.http://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/go...()
Reply all
Reply to author
Forward
0 new messages