72086

arabic text doesn't work with IE … jquery ajax

Question:

$('#search_text').keyup(function() { var search_text = document.getElementById('search_text').value; $.ajax({ url:"jx_displayautocompletelist.php", data: 'text='+search_text, success:function(result){ $("#autocompleteresult").html(result); } }); });

what i want to print text which written in "search_text" in ajax file its working with english but doesn't work with arabic

for example :

english : football arabic: كرة

its working fine with firefox but doesn't work with arabic with IE

Answer1:

Sory if this sounds stupid but have you changed your charset to accept arabic, if not try folowing code in head of HTML:

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1256"> or <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-6">

Recommend

  • Sending Arabic Characters via AJAX not working in IE
  • RTL (Right-to-left) via auto layout broken on iOS 6.1 / iOS 7.0?
  • How to support arabic language in android? [duplicate]
  • Localization laravel
  • how can i match two strings even if they are 1 character different?
  • Choices defined for model fields not being enforced?
  • PHP Contact Form not submitting
  • Full text search on substring in PostgreSQL
  • Regex is not working as expected?
  • “Not a git repository: ” Error when trying to add RestKit to my repository
  • How to convert single element tuple into string?
  • I am looking for an algorithm that calculates the power of a number. (x^y), x and y are integers . I
  • Selection Sort, For Java
  • Custom locale in Android
  • CFBundleDevelopmentRegion not works as expected
  • JSR-330 support in Picocontainer : @Inject … @Named(\"xxx)
  • JPA flush vs commit
  • nonblocking BIO_do_connect blocked when there is no internet connected
  • Insert new calendar with SyncAdapter- Calendar API Android
  • Ensure fsync did its job
  • Get data from AJAX - How to
  • Bug in WPF DataGrid
  • align graphs with different xlab
  • Return words with double consecutive letters
  • R: gsub and capture
  • php design question - will a Helper help here?
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Comma separated Values
  • How to get icons for entities from eclipse?
  • AngularJs get employee from factory
  • Proper way to use connect-multiparty with express.js?
  • Load html files in TinyMce
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Authorize attributes not working in MVC 4
  • JaxB to read class hierarchy
  • Reading document lines to the user (python)
  • How can i traverse a binary tree from right to left in java?
  • Python/Django TangoWithDjango Models and Databases
  • How to load view controller without button in storyboard?