Member
Member
BertSimons   2010-06-06, 17:10
#1

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 ´´ )

Acryllian..we have a problem!

inlogcodes can be provided..

Administrator
Administrator
acrylian   2010-06-06, 18:32
#2

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

Member
Member
BertSimons   2010-06-06, 18:43
#3

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...

Administrator
Administrator
acrylian   2010-06-06, 18:56
#4

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

Member
Member
sbillard   2010-06-07, 01:16
#5

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.

Administrator
Administrator
acrylian   2010-06-07, 08:39
#6

I have checked both locally on my server and on my live space are utf8.

Member
Member
BertSimons   2010-06-07, 08:43
#7

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..

Member
Member
Jonas   2010-06-07, 09:26
#8

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 tag, and the in your theme, which can be important when using special characters.

Member
Member
BertSimons   2010-06-07, 09:42
#9

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..

Member
Member
Jonas   2010-06-07, 09:45
#10

Hi Bert,

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

Member
Member
BertSimons   2010-06-07, 12:06
#11

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..

Administrator
Administrator
acrylian   2010-06-07, 14:40
#12

That is important, too. Encoding stuff is quite "complicated" as there are several places to set that...

Member
Member
sbillard   2010-06-07, 17:28
#13

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.