Author Topic: utf-8 how to?  (Read 7469 times)

0 Members and 1 Guest are viewing this topic.

Offline Murat

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • Lavinya
utf-8 how to?
« on: September 03, 2008, 01:57:21 AM »
Hello all.
1. i all files php and templates files convert encoding to utf-8.(with pspad)
2. added new lines to db_mysql.php:

this line above return $this->connection;
to this code:
    mysql_query("SET NAMES 'utf8'");
    mysql_query("SET CHARACTER SET utf8");
mysql_query("SET COLLATION_CONNECTION = 'utf8_turkish_ci'");

and this line after function query($query = "") {
unset($this->query_id);
 mysql_query("SET NAMES 'utf8'");
    mysql_query("SET CHARACTER SET utf8");
mysql_query("SET COLLATION_CONNECTION = 'utf8_turkish_ci'");

3. meta charset iso-8859.... to utf-8 in language charset.
4. added this line to page_header.php
header ("Content-type: text/html; charset=UTF-8");
5. all db table convert to utf-8 collation utf8_turkish_ci

Ok no problem. all site text displaying true.. new data added ok displaying true encoding.
But how to i can make extra fix or code?

i checked my site from http://www.w3.org/2003/12/semantic-extractor.html
character displaying wrong. example:
Fotoğraf - 1176

but other website (original utf8) no problem.
sorry my english not enought. :( if you reply me messages i will be happy. thanks.

<?php echo 'Hello, World!'; ?>

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: utf-8 how to?
« Reply #1 on: September 03, 2008, 06:11:37 AM »
Maybe that site just doesn't show it properly?

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Murat

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • Lavinya
Re: utf-8 how to?
« Reply #2 on: September 03, 2008, 01:19:20 PM »
V@no thanks for reply. But other "Turkish utf-8" sites showing true...
problem only my gallery.  :(
<?php echo 'Hello, World!'; ?>

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: utf-8 how to?
« Reply #3 on: September 03, 2008, 03:44:00 PM »
This is weird...maybe you should ask it at that site why it shows like this?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Murat

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • Lavinya
Re: utf-8 how to?
« Reply #4 on: September 03, 2008, 06:40:18 PM »
V@no thanks you very much.

What new is planned for gallery script?
Any time for release? September, october?

if you released is new version please add: utf-8 support
<?php echo 'Hello, World!'; ?>

Offline Murat

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • Lavinya
Re: utf-8 how to?
« Reply #5 on: September 04, 2008, 01:09:31 AM »
function utf8_to_htmlentities, function uni_to_utf8, function clean_string, function clean_array what is this functions?
<?php echo 'Hello, World!'; ?>