0

Hi,
hindi kruti 13 font is not working in form.
I also installed again but getting same result.
Need advice

3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by |-|x
0

Is this a mysql or html or even php problem?

After your db connection stuff in php:

mysql_query('SET character_set_results=utf8');
mysql_query('SET names=utf8');
mysql_query('SET character_set_client=utf8');
mysql_query('SET character_set_connection=utf8');
mysql_query('SET character_set_results=utf8');
mysql_query('SET collation_connection=utf8_unicode_ci');

Ensure that your head area has this:

<meta charset="utf-8">

If you're displaying stuff before the html tags, you may need this:

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

Edited by diafol

0

You may also need to set the collation of your database, tables and/or fields to support the extended character set.

EG:

# Create New Database with UTF8 Collation
CREATE DATABASE `testdb` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

# Create new table with UTF8 collation and UTF8 field
CREATE TABLE IF NOT EXISTS `tbl` (
    #...Fields...
    `value` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
    #...More Fields...
) ENGINE=InnoDB DEFAULT CHARSET=utf8_general_ci;

# change existing field collation to UTF8
ALTER TABLE  `tbl` CHANGE  `value`  `value` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.