How to change default language encoding?

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
pastabalodis
Posts: 1
Joined: Sat Jan 03, 2009 8:36 pm

How to change default language encoding?

Post 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!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
Post Reply