Question

I have used Tamil fonts and it is displaying the correct font when I run it in local server. But it is showing like X.Ã.uhkrhä bu£oah® in webpage. How to solve this? Please help.

Was it helpful?

Solution 2

try this ,

<meta charset="UTF-8" />

OTHER TIPS

Add the below code on your php script.

<?php
header('Content-Type: text/html;charset=utf-8');

You need to do two things

  1. set meta data to utf-8 (as given in answers here)
  2. Save the page in UTF-8 encoding instead of ASCII (then browser will know this page contains UTF-8 content)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top