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 8680161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:10:33+00:00 2026-06-12T21:10:33+00:00

i got issue with URL and getting null as response.I have also tried to

  • 0

i got issue with URL and getting null as response.I have also tried to Make it Encode but reponce is not getting as per expectation..

Here is my code :

try
     {          
         String url = "http://mymemory.translated.net/api/get?q=Thanks&langpair=EN|KO" + query;
         Log.i("URL", ">>>"+url);
         JSONObject Responce = getJSONfromURL(url.toString());
         Log.e("", "Responce"+Responce);
     }
     catch (Exception e) {}

Error Log:

10-12 20:13:35.411: INFO/URL(6844): >>>http://mymemory.translated.net/api/get?q=Thanks&langpair=EN|KO
10-12 20:13:35.531: ERROR/log_tag(6844): Error in http connection java.lang.IllegalArgumentException: Illegal character in query at index 59: http://mymemory.translated.net/api/get?q=Thanks&langpair=EN|KO
10-12 20:13:35.531: ERROR/log_tag(6844): Error converting result java.lang.NullPointerException
10-12 20:13:35.531: ERROR/log_tag(6844): Error parsing data org.json.JSONException: End of input at character 0 of 
10-12 20:13:35.541: ERROR/(6844): Responcenull

After Encoding

URL Encode method apply..

    String query = URLEncoder.encode("Thanks&langpair=EN|KO", "utf-8");
    String url = "http://mymemory.translated.net/api/get?q=" + query;
    Log.i("URL", ">>>"+url);
    JSONObject Responce = getJSONfromURL(url.toString());
    Log.e("", "Responce"+Responce);

Log ::

10-12 20:21:01.180: INFO/URL(7050): >>>http://mymemory.translated.net/api/get?q=Thanks%26langpair%3DEN%7CKO
10-12 20:21:01.710: ERROR/(7050): Responce{"responseData":{"translatedText":"INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT"},"matches":"","responseStatus":403,"responseDetails":"INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT"}
  • 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-12T21:10:34+00:00Added an answer on June 12, 2026 at 9:10 pm

    Don’t URLEncode the “=” in your query string. Essentially, you just want to urlEncode the values. So if your URL looked like this, it would work:

    http://mymemory.translated.net/api/get?q=Thanks&langpair=EN%7CKO
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Got an issue where MyObj.classnameis(TMyClass.classname) is true and TMyClass(MyObj) works but (MyObj as TMyclass).doSomething
I have an issue with URL-rewriting in .htaccess. Here is .htaccess file: RewriteEngine On
I've got a pickem object that has one result. I'm having an issue getting
I tried to change the URL structure of my Wordpress site. I am getting
recently got an issue when loading vs 2008, it displays this... can anyone tell
I got an issue. The scenario is like this: I got an NSOperationQueue that
I got some issue working with UINavigationalControllers for iPad. Issue : UINavigationController1 UINavigationController2 Placed
I got an issue with deleting an object from ArrayList when working on the
I got this issue, In the above html I cannot click on the dropdown
I've got an issue where strtotime returns my afternoon times as 0. This is

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.