ZenphotoCMS Forum
Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. (/thread-3575.html)



Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - mironb - 2008-10-07

Hi When I input polish letters: ąęłźć etc. in descriptions of albums or photos
in my new 1.2.1 zenphoto gallery I get:
?…?…?…?™?™?™?™??€š??€š??€š ?…?…?…źźź?‡?‡?‡
Samething is wrong. I have new instalation of zenphoto and UTF-8 encoding in options and zp-config.php.
You can try this at:
http://www.fotostacja.pl/nowa/zp-core/admin.php?page=edit&album=nowe&saved&tagsort=0#tab_albuminfo
login:miron
pass:miron
Regards




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - mironb - 2008-10-07

Please move this thread to:
http://www.zenphoto.org/support/topic.php?id=4035
I think that's the same problem.




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - sbillard - 2008-10-07

We are working to fix some issues involving UTF-8 encodings (http://www.zenphoto.org/trac/ticket/795). Currently the only solution is to

  1. Use the nightly build
    and
  2. Update the table in the sanitize_strings() function to include the characters you are having problems with.



Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - olihar - 2008-10-12

@sbillard

I am trying to figure out what you mean by point nr. 2. where can I put my special characters.

as I am having this same problem and I just installed a fresh nightly build to play with, put my database as UTF-8 before starting and a closer look afterward I can see all the tables are UTF-8, not like my previous test had some Swedish tables.

What I get on the web and in the database is

Prufa að setja à slenska stafi à þetta er UTF-8 að virka à áóúéþðö
but it should look more like

Prufa að setja íslenska stafi í þetta er UTF-8 að virka íáóúéþðö




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - sbillard - 2008-10-12

Well, it is mostly moot now. Upgrade to the current nightly build as we have fixed the root problem.




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - olihar - 2008-10-16

it seems like there are still some problems with encoding. As I can see many people have..

I am still running into identical problems as 2 posts before.

I have updated to [2753]

During the update the setup asked me to change my php.ini file so I did, to this.
mbstring.internal_encoding = UTF-8 ;

My database has always been set to UTF-8. I am running 2 test installations and I have the same problem on both. One of them was installed some time ago and has been updated a lot and still has some Swedish encoding on tables in database. and then 1 who I installed after I changed the default encoding in the database to UTF-8 so all its tables do have UTF-8.




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - BertSimons - 2008-10-16

me too the update asked me to change my php.ini file, my provider though does not allow me to acces the php.ini. I added the following to the .htacces file;

php_value mbstring.internal_encoding UTF-8

no warning anymore and accented characters appear ok..




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - mironb - 2008-10-19

Hi
I am using latest build:
http://www.zenphoto.org/files/nightly/zenphoto-2008-10-18-trunk.zip
When I upgrading my zenphoto there is information that:

Setting mbstring.internal_encoding to UTF-8 in your php.ini file is recommended to insure accented and multi-byte characters function properly.

When I am changing .htaccess in my gallery folder and adding:
php_value mbstring.internal_encoding UTF-8

I see Eror serwer 500
What I can do moore to see polish characters ?




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - mironb - 2008-10-19

I added ąśćńęł etc to sanitize_strings() and now can see it in descriptions but
in dates etc I still dont have polish strings




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - olihar - 2008-10-19

@mironb

could you please tell me where sanitize_strings() is... As I asked before and did not get that answered. because I would like to add áéíóúðþæö to there. Thanks




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - acrylian - 2008-10-19

In zenphoto 1.2.1 that is in functions.php, in the nightliy it's in functions-basic.php. But the nightly does not have that array to add characters anymore. Instead sbillard and krainbolt were/are working on solving the general issue.




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - olihar - 2008-10-19

No wonder I didnt find it I looked all over the place.

Is there a manual way to put it back in for the time being or will the wait for a fix be the way to go?




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - mironb - 2008-10-19

For me sanitize_strings() are in admin/ options /gallery configuration/ allowed tags Now I know thats wrong but mayby it will help you:
In my version it looks like this:

a => (href => () title => ())
abbr => (title => ())
acronym => (title => ())
b => ()
blockquote => (cite => ())
code => ()
em => ()
i => ()
strike => ()
strong => ()
ul => ()
ol => ()
li => ()
p => ()
Å› => ()
Ä™ => ()
ź => ()
ż => ()
Å‚ => ()
Å„ => ()
ó => ()
Ä™ => ()
Ä… => ()
ć => ()




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - olihar - 2008-10-19

interesting way of going around an issue. however it did not work for me, I am not surprised as it is all screwed up in the database after zenphoto reads it in to begin with. Lets hope for a fix soon.




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - olihar - 2008-10-22

So if I ask again...

Is there a manual way to put it back in for the time being or will the wait for a fix be the way to go? I am wondering about my own web page as it is on hold.




Problem with polish encoding utf 8 and polish letters ąęćłżźóś.. - acrylian - 2008-10-22

You can use Zenphoto 1.2.1 if want to add characters to the sanitize_string function. sbillard is on vacation for a week so there will not much happen in this time. I am not familiar with those parts.