SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast rekha_shp's Avatar
    Join Date
    Jan 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Displaying tamil fonts in php from mysql database problem

    Hi,

    In my site I am storing tamil fonts into database and displaying it in php.I exported the data from the server and imported to another.Now the tamil content is not displaying properly.I have used the query and the meta tag

    Code:
    <META HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=utf-8″>
     mysql_query(’SET character_set_results=utf8′) in the php code before fecthing the record.
    But still tamil fonts are not displaying.If anyone knows reply me.

  2. #2
    SitePoint Enthusiast burNMind's Avatar
    Join Date
    Jan 2009
    Location
    UK
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe it's a database collation problem, so make sure the collation of your new database is the same as the old one.
    blogging @ burnmind.com

  3. #3
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Please use the database field collation to "utf8_general_ci" and the use the following query before you fetching the records from DB
    mysql_query("SET NAMES utf8");
    Try this out


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •