but when i printout to browser from database
seen string ugly..
i have resolve this issue, when i googling..
This simple way, just put the code like the bellow.
mb_convert_encoding($string_from_db, 'HTML-ENTITIES', 'UTF-8');
mb_convert_encoding($string_from_db, 'HTML-ENTITIES', 'UTF-8');
< ? ob_start(); header("location:home.php"); ?>
sudo cp -rf /etc/php.ini.default /etc/php.ini
sudo nano /etc/php.inithen find and edit error_reporting
error_reporting = E_ALL & ~E_NOTICERestart your apache
sudo apachectl restartthat's all, reload your page.
sudo nano /etc/apache2/extra/httpd-vhosts.confadd these line of codes:
< VirtualHost *:80> DocumentRoot "/Library/WebServer/Documents" < /VirtualHost>Restart your apache
sudo apachectl restart