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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:25:33+00:00 2026-06-04T03:25:33+00:00

hi i use this code for save text in database function commenttext() { var

  • 0

hi i use this code for save text in database

function commenttext()
{
  var com=document.getElementById("commenttext").value;
  var xmlhttp;
  if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
    }
  else
    {// code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  xmlhttp.onreadystatechange=function()
  {
    if (xmlhttp.readyState==4 && xmlhttp.status==200)
      {
      document.getElementById("commentpalm").innerHTML=xmlhttp.responseText;
      }
  }
  xmlhttp.open("GET","func/comment.php?comtext="+com,true);
  xmlhttp.send();
  document.getElementById("commenttext").value="";
}

and when i see database field in mysql admin insteat of utf8 charecter ???? save .
this broblem only foe ie and in firefox or chrome is good .
i use for all page this code

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

and my encodin is uft8 without BOM .

this broblem is only for IE .

  • 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-04T03:25:35+00:00Added an answer on June 4, 2026 at 3:25 am

    try:

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    

    and add this line to your php.ini:

      default_charset = "utf-8"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use this code: $(img.cloudcarousel).each(function(i, e){ coords[i] = $(e).offset(); }); to save the position
I use this code to update data in database table. Can reuse same code
I use this code: http://blogswizards.com/plugin-development/sliding-boxes-and-captions-with-jquery On a simple gallery site I am building. Specifically
Im using sql database and making a program with vb. i use this code
I use this code to save my xml file. SaveFileDialog saveFileDialog1 = new SaveFileDialog();
use this code, in the Preferences activity, to know when the reset preference has
I use this code to redirect user to a particular app in the Market:
i use this code for exporting gridview to Excel in asp.net - c# .....but
I use this code on my wordpress plugin to return the src of the
I Use this code to get the public IP-address (thanks to this post How

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.