3

I am sending tamil text from a form to php script but php is not recognize that.

Html Code

<form action="insert_into_db.php" method="post">

 <textarea name="message" class="form-control message-box" rows="5" id="comment" placeholder="enter your message here"></textarea>

</form>

PHP code in insert_into_db.php

<?php
$message = $_POST['message'];
echo $message;

User Input :- இந்த டெமோ செய்தி உள்ளது

Output :- இநà¯à®¤ டெமோ செயà¯à®¤à®¿ உளà¯à®³à®¤à¯

expected output :- இந்த டெமோ செய்தி உள்ளது

Please help me Thanks in advance

1 Answers1

0

Check the browser encoding first .

  1. Go right side menu and click the settings
  2. Scroll down page and click Show advanced settings
  3. Search under Web content label and click customize fonts button
  4. At the bottom of the popup box ,in Encoding select UTF-8
Jack jdeoel
  • 4,554
  • 5
  • 26
  • 52