0

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.

Sharanya Dutta
  • 3,981
  • 2
  • 17
  • 27
user3239311
  • 187
  • 1
  • 4
  • 15

3 Answers3

3

Add the below code on your php script.

<?php
header('Content-Type: text/html;charset=utf-8');
Shankar Narayana Damodaran
  • 68,075
  • 43
  • 96
  • 126
  • actually the file extension is only .php but everthing inside is html only. when am editing the tamil content in dreamweaver/localhost it is perfect but not in server – user3239311 Jan 27 '14 at 06:19
0

try this ,

<meta charset="UTF-8" />
Steve Bals
  • 1,949
  • 6
  • 22
  • 32
0

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)
Jay Mayu
  • 17,023
  • 32
  • 114
  • 148