Topic: UTF-8, the final solution...
Hi,
I believe there should be a tutorial on how to make punbb use unicode (utf-8) encoding.
I am running a croatian web site that is currently using phpbb, and I have another site with SMF forum installed, and both work quite nice with utf-8 encoding.
I would like to give punBB a try, but I am running into some problems.
I've changed the template so that the forum displays itself in utf-8. I've edited /include/dblayer/mysql.php and changed
if ($p_connect)
$this->link_id = @mysql_pconnect($db_host, $db_username, $db_password);
else
$this->link_id = @mysql_connect($db_host, $db_username, $db_password);
to
if ($p_connect)
$this->link_id = @mysql_pconnect($db_host, $db_username, $db_password);
else
$this->link_id = @mysql_connect($db_host, $db_username, $db_password);
[b]mysql_query("SET NAMES 'utf8'");[/b]
Posting a new message shows me (when I check the thread, and look into my mysql database) that croatian simbols are working as intended, but my problem is (and I've noticed that many other users have the same issue):
Unable to insert search index words.
This happens in /include/search_idx.php, I had a look at http://punbb.org/forums/viewtopic.php?pid=19681#p19681 but it didn't help. As far as I can see, the 2 lines in search_idx.php are the only thing stopping punbb to work in unicode, or is there something else? I saw some other posts from Rickard explaning that many functions should be rewritten if punnbb would use utf-8, so if anyone cares to explain why it would be very nice, I would really like to know.
It would be really great if you make it work with utf-8, and I see no reason why it couldn't be the dafault encoding for punbb?