You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2005-06-08 14:11:50

megabrain
Member
Registered: 2005-06-03
Posts: 35

Utf-8

Hi, it's me again...

After suggestion from developers, i've chnged some piece of functions.php in /glpi/glpi/common to handle UTF-8 (to dispaly polish native characters), I have strange situation. Before change to utf-8, after input some text with polish characters, that text was written to database, but polish letters was replaced by some others characters.
After change to UTF-8 I'll try to update some text to display polish characters, I'll type some text with polich letters, click update and ... to database is written only a partial text, exactly lettert ehich are before first polish letter, quick example ( # -> polish letter ) :

i'll type "abcdef#dkdiiusiksrjfs" , after click update in database I have "abcdef"

Database is set up ok ( mysql 4.1.12, charest utf8)

I'll hope I don't make this description too complicated smile I am so confused at the moment, I'll try to run glpi with full polish language support and I can't smile

Maby someone has configured UTF for native language support ?

Offline

#2 2005-06-08 14:13:08

baaz
Member
Registered: 2004-09-13
Posts: 513

Re: Utf-8

What is your php default charset or the default charset of the env where php is running

Last edited by baaz (2005-06-08 14:13:51)


Bazile Lebeau

Offline

#3 2005-06-08 14:37:23

megabrain
Member
Registered: 2005-06-03
Posts: 35

Re: Utf-8

php default charset is set to null (disabled), on the system variables LANG.... are not defined too.

Offline

#4 2005-06-13 12:12:44

baaz
Member
Registered: 2004-09-13
Posts: 513

Re: Utf-8

And if you set your php default charset to UTF 8, does it works ?


Bazile Lebeau

Offline

#5 2005-06-14 13:07:44

megabrain
Member
Registered: 2005-06-03
Posts: 35

Re: Utf-8

After set up "default_charset" to utf-8 it is a little better - characters are written to database, but if I try to write for example "żąś", in database it is written as "żÄ?Å? " and the same displayed on screen. I was trayed many "combinations" and now I am more stupid than before smile

Hope you all can see polish letters in my post

Offline

#6 2005-06-15 13:37:10

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Utf-8

you could see in the DBmysql class ... of in htmlentities/unhtmlentities functions to use utf_decode.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

Board footer

Powered by FluxBB