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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:28:45+00:00 2026-06-05T15:28:45+00:00

Sometimes i face the following problem : string txt = con.Request.Params[Par_name].ToString();//the original par value

  • 0

Sometimes i face the following problem :

string txt = con.Request.Params["Par_name"].ToString();//the original par value is arabic text

I get the following result!!

��� ������ ������� �����

What’s the reason to this problem and how to get the original arabic text ??

  • 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-05T15:28:47+00:00Added an answer on June 5, 2026 at 3:28 pm

    When you send string via url parametres, even via ajax and its utf-8 to avoid conflicts you must encode it with the javascript functions like the encodeURIComponent. Encode only the part of the value, not the parameters and the full url ! When then read the parameters on code behind they usually be UrlDecode by default, but if they not, do it manually.

    For example the code from https://stackoverflow.com/a/10968848/159270 will be:

    jQuery.ajax({
        url: "/LogAction.ashx?par_name=" + encodeURIComponent(par_name) + "&par_address=" + encodeURIComponent(par_address),
        type: "GET",
        timeout: 3000,
        async: true, // you can try and async:false - maybe is better for you
        data: action=4, // here you send the log informations
        cache: false,
        success: function(html) {
            jQuery("#FormID").submit();
        },
        error: function(responseText, textStatus, XMLHttpRequest) {                 
            jQuery("#FormID").submit();
        }
    });
    

    I did not include this encode on the previous answer because usually they are not send string as parameters, but variables, and because the answer was not focus on this detail.

    You can also read : http://xkr.us/articles/javascript/encode-compare/

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

Sidebar

Related Questions

I face a problem in scipy 'leastsq' optimisation routine, if i execute the following
sometimes i face the following case in my database design,, i wanna to know
Sometimes I can't understand the simplest things, i'm sure it's in my face, i
When replacing code on various documents, sometimes we face hard times, having to do
We are developing a J2ME application and sometimes we face constraints while working with
Sometimes I face I must write a piece of code like this (usually it
Sometimes I got a crash of my application with the following stack trace :
Sometimes, when I upload files to ftp, and then download them, I face with
Sometimes, when uploading files using <input> tag, I encounter problem where the file extension
I've run into the same problem a lot of people seem to face coming

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.