Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8331401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:24:24+00:00 2026-06-09T02:24:24+00:00

I am having a curious problem that perhaps someone has insight into. I encode

  • 0

I am having a curious problem that perhaps someone has insight into. I encode a query string into a URL on Android using the following code:

request = REQUEST_BASE + "?action=loadauthor&author=" + URLEncoder.encode(author, "UTF-8");

I then add a few other parameters to the string and create a URI like this:

uri = new URI(request);

At a certain point, I pull out the query string to make a checksum:

uri.getRawQuery().getBytes();

Then I send it on its way with:

HttpGet get = new HttpGet(uri);

On the Appengine server, I then retrieve the string and try to match the checksum:

String query = req.getQueryString();

Normally, this works fine. However, there are a few characters that seem to get unencoded on the way to the server. For example,

action=loadauthor&author=Charles+Alexander+%28Ohiyesa%29+Eastman&timestamp=1343261225838&user=1479845600

shows up in the server logs (and in the GAE app) as:

action=loadauthor&author=Charles+Alexander+(Ohiyesa)+Eastman&timestamp=1343261226837&user=1479845600

This only happens to a few characters (like parentheses). Other characters remain encoded all the way through. Does anyone have a thought about what I might be doing wrong? Any feedback is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:24:28+00:00Added an answer on June 9, 2026 at 2:24 am

    I never did find a solution for this problem. I worked around it by unencoding certain characters on the client before sending things to the server:

    request = request.replace("%28", "(");
    request = request.replace("%29", ")");
    request = request.replace("%27", "'");
    

    If anyone has a better solution, I am sure that I (and others) would be interested!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a curious problem. I have a bash script that is calling a
I was having a curious problem that I finally found a solution to, but
I'm curious about the possibility of having a .NET class library that provides a
I'm having a problem using the jquery hover events. I've created a reduction of
I am having a curious problem. I had this Java application which was previously
We're having a very curious problem with hsqldb. We are running some tests which
I'm having a bit of a curious problem with .NET and working with the
I came across the problem of not having an editor kit that could not
I have been curious to know what is the purpose of having a console
... after having just read http://www.cocoadev.com/index.pl?CocoaInsecurity ... I am curious to know about your

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.