PDA

View Full Version : Russian language and UTF8


danzz
01-23-2008, 05:08 PM
Hi!

I just installed Centreon 1.4.2.3 on my FreeBSD machine, fixed some BSD-specific paths in mysql-databases and so on.. I have some questions, because there is no full documentation in english, only in french :(

The charset used in mysql-tables is UTF8. I live in Russia, so I need full russian language support in web-interface. I tried to enter russian symbols in description fields, but I got only strange codes of russian symbols.

What should I do to fix it? Try to edit .php-files for setting correct 'charset' parameter or anything else?

P.S. sorry for my english :)

arikin
10-09-2008, 09:59 AM
Almost the same problem here with Japanese.

The strange code should be utf8. That way it is ok to systems using latin-1. It can encode cryllic too. PHP should be able to display it.

Check the php.ini file and its mbstrings settings.
Check on the web on how to set the php.ini settings to display cryllic.

BASIC flow:
webpage (take any encoding) --> php saves this as UTF8 in the DB --> export nagios CFG done in UTF8 / display DB data on webpage according to encoding.

If think it is php messing up try adjusting the mbstring.func_overload setting in php.ini Level 7 is the highest and not really recommended.

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
mbstring.func_overload = 0