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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:08:13+00:00 2026-06-05T04:08:13+00:00

take $(#+id).val() in consideration var field = document.getElementById( id ); /* … */ if(

  • 0

take $("#"+id).val() in consideration

var field = document.getElementById( id );
/* ... */
if( field.value != "" )
    var jqxhr = $.get( "/user/ajaxtag/tag/" + $("#"+id).val(), function( data ) {
        suggestionText = data;
        //does something which i thing is non of problem's business
        var arr = getListItems( field.value );
        if ( field.value.length > 0 ){
            createList( arr );
        } else {
            clearList();
        };
        // end of non of business
    });

when using english in the input box which triggers this piece of code on change, the ajax request is responded successfully, but when using persian like “س” IE sends this

GET /user/ajaxtag/tag/??_=1338567574102 HTTP/1.1\r\n

(i got this information on wireshark) and replaces the utf8 chars with ?, the problem doesn’t occur when i use firefox, only in ie (not a surprise ha?) i have this line in the header

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

in another question on stackoverflow.com it was suggested to change php.ini, but i am on a shared host and dont have access to the file.

i did alert( $( "#" + id ).val() ) and the alerted thing was not ? was the input char.. 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-05T04:08:14+00:00Added an answer on June 5, 2026 at 4:08 am

    You need to encode parameter names and values with encodeURIComponent() function.

    or to make it RFC3986 compliant you can use this function:

    /** 
     * encodeURIComponent() function is not 100% compatible with
     * RFC3986 http://www.faqs.org/rfcs/rfc3986.html
     */
    function encodeRFC3986(value) {
      return encodeURIComponent(value)
        .replace(/!/g,  "%21")
        .replace(/\*/g, "%2A")
        .replace(/\(/g, "%28")
        .replace(/\)/g, "%29")
        .replace(/'/g,  "%27");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Quite a few functions on Map take a function on a key-value tuple as
I need to take value from beginning of input to cursor. val() return whole
Curious question: Take this function: function something():Array { var ar:Array = []; var i:MovieClip;
Please take a look at the following autocomplete code. $(document).ready(function(){ $(#the_input).autocomplete(/autocomplete.php, { //some options
Take this code: class Register(var value:Int = 0) { def getZeroFlag() : Boolean =
Please take a look at the following code... $(#page_info_select_box).live(keypress,function(){ var sele = domain; var
Why isn't this script working? $(function() { var isbn = $('input').val(); $('button').click(function() { $(#data).html('<iframe
I'm using the following code to take the value of one field, subtract it
i make this function : function price(val){ var test = $('span.hikashop_product_price_full:visible').text(); var test2 =
Take a look at this tiny program. #include <iostream> int main(){ int var =

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.