I have for some time tried to find a configuration combination for Zenphoto+Zenpage to handle danish chars (æøåÆØÅ) correctly.
I have tried do set $conf['UTF-8'] = false; (zp-config.php) and also setting Charset (within gallery configuration) to 'Western-European (ISO)'
Here the zenphoto+zenpage admin interface is handling the danish chars correctly
But then image album links within 'print_album_menu' fails to print the menu link.
If I do the below fix, the album menu is correct..
zp-core/functions-basic.php:117
/**
* encodes a pre-sanitized string to be used in an HTML text-only field (value, alt, title, etc.)
*
* @param string $this_string
* @return string
*/
function html_encode($this_string, $striptags=true) {
if ($striptags) {$this_string = strip_tags($this_string);}
$this_string = htmlspecialchars_decode($this_string, ENT_QUOTES);
//return htmlspecialchars($this_string, ENT_QUOTES, "UTF-8");
return htmlspecialchars($this_string, ENT_QUOTES, "iso-8859-1");
}
If I however uses UTF-8, then I'm having problems with the zenpage admin interface, here the use of the above chars is failing in titles and titlelinks, (comparing to the album handling where the danish chars is handled correctly).
The same goes for the text translation of Zenphoto into danish that I have made, this only fails within the zenpage admin interface.
Hope that I have described the problem in a understandable way...
Is the a way of making zenphoto+zenpage able to handle this correctly, without the above fix in functions-basic.php?
Btw. my danish translation of zenpage is made with UTF-8 set in Poedit.
R:Martin