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.
            Asked
            
        
        
            Active
            
        
            Viewed 5,862 times
        
    0
            
            
         
    
    
        Sharanya Dutta
        
- 3,981
- 2
- 17
- 27
 
    
    
        user3239311
        
- 187
- 1
- 4
- 15
- 
                    You probably need to set/use `UTF-8` – Class Jan 27 '14 at 06:08
- 
                    thanks for your response. How to set/use UTF-8? and where i should set it – user3239311 Jan 27 '14 at 06:10
- 
                    [UTF-8 all the way through](http://stackoverflow.com/a/279279/1700963) – Class Jan 27 '14 at 06:12
- 
                    still its not working friend – user3239311 Jan 27 '14 at 06:21
3 Answers
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
            
            
        You need to do two things
- set meta data to utf-8 (as given in answers here)
- 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
