![]() |
|
problem of accent only in page/search/archive - 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 of accent only in page/search/archive (/thread-5830.html) |
problem of accent only in page/search/archive - marguerite - 2009-09-11 Zenphoto version : 1.2.6 / Encoding : unicode UTF-8 / Website language : French Accentuated letters are well encoded in all files except the words treated in the variable "%1$s" in the following code of search.php : " echo ''.sprintf(gettext('Total matches for [i]%1$s[/i]: %2$u'), $searchwords, $total).''; " Illustration : when looking for my archives, I click on the hyperlink "décembre 2008", where the "é" of "décembre" is ok. The file "http://www.my_website.ch/zenphoto/page/search/archive/2008-12" is uploaded. There the "é" of "décembre" is no more encoded, the file returns "Total des résultats pour [i]décembre 2008[/i] : 9". What should I change to encode the variable "%1$s" ? Thanks a lot for any help. problem of accent only in page/search/archive - sbillard - 2009-09-13 You should look at the character set encoding Zenphoto is set to and the Table charactersets. In additon check your PHP internal set. All should be UTF-8. problem of accent only in page/search/archive - marguerite - 2009-09-17 According to my web hosting service provider, my PHP internal set is ok and also my Table characters sets. Nonetheless, I saw in the Table Albums that words are not encoded ( Regarding my problem when looking for my archives : I saw that dates are written in figures in the Tables. Does it mean that the function which converts dates in letters doesn't encode in UTF-8 when zenphoto/page/search/archive/2008-1w is uploaded ? What can I do ? Thank you for your help. problem of accent only in page/search/archive - sbillard - 2009-09-17 First, you will have to be running the current version of Zenphoto--perhaps the nightly build, I do not remember. Then you will have to re-edit each of those albums which have the html encoded characters. Just doing a save should do the trick. I have no idea what you mean by "dates written as figures". problem of accent only in page/search/archive - marguerite - 2009-09-17 Sorry. I am not English-speaking as you certainly guessed. I mean that in the table dates format is for example 2008-02-27 (instead of caracters : 27 février 2008). problem of accent only in page/search/archive - sbillard - 2009-09-17 Dates are formatted on output. What you see in the database is the MySQL standard for storing dates. problem of accent only in page/search/archive - acrylian - 2009-09-17 More specific it is actually also the international standard date format according to ISO 8601/EN 28601. |