Re: char encoding problem when using ssi

samedi 31 mai 2014

Hello,

I installed smf 2.0.6 using utf8 encoding. My database is also utf8 encoded. When I send pm through the forum everything works well, accents are well displayed.

I have an application developed with CodeIgniter that is link to the smf forum through SSI. The application uses the same database than smf and I use netbeans 8.0 with utf8 file encoding.

So everything looks find but when I send a pm through the CI app the accents are not well encoded (ex: La tournée). Another problem, if a username content an accent I need to convert it to utf8, ex: utf8_encode($smf->get_context()['user']['username']), in order to have it well displayed on CI side.

It looks like there is a problem of encoding when passing between smf and CI but i can't figure out what's going wrong.

Thanks in advance for your help.





0 commentaires:

Enregistrer un commentaire

 

Lorem

Ipsum

Dolor