Best Seller Linux Reseller Hosting Including 35% Recurring Discount!
webtech1 - Yesterday, 11:21 PM
Best webhosting support and Server Management services with 24x7technicalsupport.net
Tecsys - Yesterday, 10:58 PM
HostChilly V3 WordPress Hosting Theme with WHMCS Integration
JennishFernandis - Yesterday, 03:32 AM
Guaranteed bandwidth,1Gbps or 10Gbps Unmetered VPS,DDoS Protection,Linux/Windows
maplogger - Yesterday, 12:32 AM
Recent Blog Entries
Recent Status Updates
Last status I posted I said I would be active, could not have been more wrong!
edit word online
I created my first blog and first entry.
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Problem with echoing variableecho
Posted 08 March 2013 - 01:38 PM
Ok, so what you need to do, is to tell the database that the client (your PHP script) wants UTF8 encoded strings. This is performed by adding the following line after having connected successfully to the database (after mysql_connect()):
mysql_query('SET NAMES utf8');
Don't forget to also set the character set header to UTF8 in your HTML document, e.g.:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Hope that helps
Posted 08 March 2013 - 04:42 PM Best Answer
mysql_query( "SET NAMES utf8", $dbconnection );
Set Your HTTP Headers also
header( 'Content-Type: text/html; charset=UTF-8' );
Edited by Ryant, 08 March 2013 - 04:47 PM.
Posted 09 March 2013 - 05:38 AM
Thank you very much! It works
Edited by Korlando, 09 March 2013 - 12:45 PM.