1
hardyvoje
How to change encooding?
  • 2006/4/5 7:01

  • hardyvoje

  • Not too shy to talk

  • Posts: 123

  • Since: 2005/12/25


Where can i find variable: $xoops_charset
to change encoding on my pages?

Help!
FreeResources Design Portal: http://www.omnetwork.net | Open Source Gaming Portal: http://www.osgamer.org

2
stefan88
Re: How to change encooding?
  • 2006/4/5 7:05

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


in language/YOURLANGUAGE/global.php at the end of file there is something like:

//%%%%%        LANGUAGE SPECIFIC SETTINGS   %%%%%
define('_CHARSET', 'windows-1251');
define('_LANGCODE', 'bg');

// change 0 to 1 if this language is a multi-bytes language
define("XOOPS_USE_MULTIBYTES", "0");

...
..

3
hardyvoje
Re: How to change encooding?
  • 2006/4/5 7:20

  • hardyvoje

  • Not too shy to talk

  • Posts: 123

  • Since: 2005/12/25


Thanks!!

But is UTF-8 multi byte?
FreeResources Design Portal: http://www.omnetwork.net | Open Source Gaming Portal: http://www.osgamer.org

4
hardyvoje
Re: How to change encooding?
  • 2006/4/19 1:39

  • hardyvoje

  • Not too shy to talk

  • Posts: 123

  • Since: 2005/12/25


Now I have to change mySql client encoding set to Latin2

I tried to insert
mysql_query("SET CHARACTER SET 'latin2'", $this->conn);

into class/database/mysqldatabase.php

but it seems that command is ignored!

help!
FreeResources Design Portal: http://www.omnetwork.net | Open Source Gaming Portal: http://www.osgamer.org