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

  • Home
  • SEARCH
  • 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 8315933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:14:32+00:00 2026-06-08T21:14:32+00:00

This is my code for uploading text to PHP file and then to MySQL

  • 0

This is my code for uploading text to PHP file and then to MySQL server:

  List<NameValuePair> params = new ArrayList<NameValuePair>();
        params.add(new BasicNameValuePair("title", title));
        params.add(new BasicNameValuePair("text", text));
        params.add(new BasicNameValuePair("date", currentDate()));
        params.add(new BasicNameValuePair("photoid", photoId()));
        params.add(new BasicNameValuePair("latitude", latit));
        params.add(new BasicNameValuePair("longitude", longi));

        JSONObject json = jsonParser.makeHttpRequest(URL_UPLOAD,
                "POST", params);

The code from the EditText is in Arabic language so it works and in MySQL. I can add Arabic language, it works. I tried to add from PHP to MySQL manually and it worked.

So, it seems the problem is that the text is not received well in the PHP file from the Android application.

In MySQL it is stored like ?????.

  • 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-08T21:14:33+00:00Added an answer on June 8, 2026 at 9:14 pm

    Just Add (N) Character before the string You send to query As

    N’ننن’

    and everything will be ok

    Good Luck

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

Sidebar

Related Questions

am I uploading this file right? Here is my code: Deleted Code it is
I am uploading image using filedrop.js. Code in application.js file looks like this:- $(.droparea).each(function(event){
I have got this JavaScript code for uploading files to my server (named it
I want to upload file with php(text file) and always this file saved as
This code gives me this error:Cannot implicitly convert type ArrayList[] to ArrayList[][] at this
I already search about this and I cannot use ajax in file uploading, but
Im uploading zip file (compressed with winrar) to my server by FileUpload control. On
I can't get this working. Here's my code. <script type=text/javascript> function close() { window.opener.location.reload();
When I execute this JavaScript file in Firefox; <script type=text/javascript > $(function () {
I'm using uploadify (a jQuery uploading) script, which has basically a PHP file at

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.