user3239311
user3239311

Reputation: 187

How to use tamil fonts in php page?

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.

Upvotes: 0

Views: 6408

Answers (3)

Jaya Mayu
Jaya Mayu

Reputation: 17247

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)

Upvotes: 0

Steve Bals
Steve Bals

Reputation: 1979

try this ,

<meta charset="UTF-8" />

Upvotes: 0

Add the below code on your php script.

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

Upvotes: 3

Related Questions