Page 1 of 1

How to change default language encoding?

Posted: Sat Jan 03, 2009 8:48 pm
by pastabalodis
Hello!
I placed guestbook in my web page www.pastabalodis.com
The problem is that its not encoding in the right format. I translated my guestbook in Latvian language, but its not encoding corectly. How can I change default encoding?
The other problem is that I would like to have option to switch guestbook language to english. Is it possible?
Thanks!

Posted: Sun Jan 04, 2009 6:38 pm
by Henrie
Hello pastabalodis,

To change the character encoding is easy starting with GBook version 1.6
Open the language.inc.php file.
Find

Code: Select all

/* Encoding for HTML pages */
$lang['enc']='windows-1250';
and change windows-1250 to your desired encoding

The changing of language would require some new coding. But if you ask nicely maybe Klemen will consider it as a new feature for one of the next GBook versions.

Greetings,
Henrie