utf-8 special characters zenpage

I started working on a new site, during install problems occured with:

mbstring.internal_encoding and magic_quotes_gpc settings

zenphoto installed though but after install I was not able to insert special characters into my zenpages like ë,´, etc.

Asked the host to set mbstring.internal_encoding to UTF-8 and turn magic_quotes_gpc off.
Although through phpinfo I can see internal string is set UTF-8 still no luck inserting special charactres in pages. ( phpinfo shown here http://www.so-low.nl/phpinfo.php )

next thing I did was check the mysql database..
fields are set to collation utf8_unicode_ci
and in zenphoto options characterset is also set to UTF-8...

so I started wondering what could be the cause.. and while checking just discovered that in the zenphoto album descriptions, image descriptions I can insert special characters like ë, etc !!!!

I just cannot insert them in the zenpage content and zenpage extra content fields..
I mean I can insert them but when I update the page the content dissapears...

another test: inserting special characters directly into the zenpage content data field in the Mysql table works, and the text appears in the zenpage admin part.. but then when I update the page the text dissapears and afterwards the field in the table is also empty (except for an ´<p>´ )

Acryllian..we have a problem!

inlogcodes can be provided..

Comments

  • acrylian Administrator, Developer
    I am sorry, I have no idea and I can't reproduce it locally and on my test site: http://zenphoto.maltem.de/pages/tinyZenpage
    There is nothing special configured and I think the db uses ISO-8859-1 actually.

    Did you maybe do something to the tinymce configuration? Try to disable that and try then
  • no also with tiny mce disabled no result..
    in whatever field I can enter special characters except in zenpage content and extra content (in codeblocks no problem also..)

    maybe you can see for yourself http://www.so-low.nl/zp-core/admin-edit.php?
    USER: solow_2010
    password: solow_2010

    note: the index.php is the old site I have to rebuild.. so I disabled the zenphoto index.php but you can see what happens in the admin part...
  • acrylian Administrator, Developer
    Login does not work. If you prefer to send a mail about the login, click on my profile's link.

    I don't think that anything has been changed on those parts for 1.3
  • The database needs to use UTF-8 or these characters will not work. That SHOULD be the case, though. But a good thing to check. If the string is being stored up to, but not including the ë character then that is an indication that Zenphoto and the Database have a misunderstanding as to what the character set should be.
  • acrylian Administrator, Developer
    I have checked both locally on my server and on my live space are utf8.
  • sbillard

    here you can see some screendumbs of phpadmin of the database

    http://www.bertsimons.nl/zenphoto/index.php?p=pages&title=collation

    funny thing is that I still don have any problems using/saving special characters in the album/images descriptions but only in the zenpage content/extracontent..
  • Jonas Member
    If you had errors when installing it, and then fixed the cause of the errors, maybe you should re-install it so that you are sure the errors don't affect your install (if you haven't done so already). Because I used zenpage with special characters without trouble before..

    BTW, I see that you are missing your <head> tag, and the <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> in your theme, which can be important when using special characters.
  • Hi Jonas

    I too used zenphoto on several servers before without problems, itÅ› only this clients server that is giving the problem.. and above link is not on the domain concerning the problem..
  • Jonas Member
    Hi Bert,

    Ah okay. I know missing the those tags would not be the cause of course, but just thought I'd mention it.
  • I solved it.. I think..hope..

    I added

    PHP_VALUE mbstring.internal_encoding UTF-8
    PHP_VALUE default_charset UTF-8

    to the end of my .htacces file end now I am able to insert special characters..

    so now I only wonder why the suggested change by zenphoto setup to set mbstring.internal_encoding to UTF-8 did not do it´s proposed job..

    I just hope the htacces thing keeps functioning for now..
  • acrylian Administrator, Developer
    That is important, too. Encoding stuff is quite "complicated" as there are several places to set that...
  • The internal encoding string applies just to strings returned from PHP functions like `date()`. I don't know what all the default_characterset does, but probably that is what was the fix to your problem. Maybe somehow your PHP was not recognizing the scripts as being in UTF-8 format.
Sign In or Register to comment.