![]() |
|
Zenpage admin fails to handle danish chars - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: Zenpage admin fails to handle danish chars (/thread-4874.html) |
Zenpage admin fails to handle danish chars - masv - 18-03-2009 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)' If I do the below fix, the album menu is correct.. zp-core/functions-basic.php:117 /**
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). 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 Zenpage admin fails to handle danish chars - sbillard - 18-03-2009 Have you tried setting your gallery configuration character set to UTF-8? Zenphoto is designed to operate in UTF-8 character sets. Also check the character set of you database. Zenpage admin fails to handle danish chars - masv - 19-03-2009 Hi, Yes I have tried that, and the result is that the char encoding problem is only within the zenpage (not zenphoto) admin gui, here I mean all the admin guidance text, as what I have translated, and then in the title and titlelinks, articl and page content do not suffer any encoding problems. As goes for the remaining part of the zenphoto admin gui, this neither have any encoding problems with danish chars. So the problem is somehow only related to handling danish chars in the zenpage admin gui, and in zenpage title, titlelink editing. If I try to type danish chars, in either a article/page title/titlelinks they just disappear.. R:Martin Zenpage admin fails to handle danish chars - acrylian - 19-03-2009 I am sorry I can't reproduce the error, æøåÆØÅ do work fine as a page title in Zenpage for me, even as a titlelink it works here. Unless you check "edit titlelink" the titlelink should be seo cleared actually. I tried an page name "Martin's ønskeliste" from your site and that works, too. The titlelink becomes "Martins-oenskeliste" here. Zenpage admin fails to handle danish chars - masv - 19-03-2009 Hi, Hummm. But of course your right about the titlelink, here they should disappear, but not in the title.. And my danish chars in my publich webpage, has been entered by performing the 'hack' in my first post:: $conf['UTF-8'] = false; Charset='Western-European (ISO)' (within gallery configuration) function html_encode($this_string, $striptags=true) { I was just looking for a way, to come around this.. R:Martin Zenpage admin fails to handle danish chars - acrylian - 19-03-2009 I just tried your danish translation and everything works fine here with the latest svn version, too. I just use the default encoding utf-8. I am sorry I have no idea. Zenpage admin fails to handle danish chars - sbillard - 19-03-2009 The "hack" you used will place these characters in the Database in Western-European (ISO) encoding. So, I guess you need to remain in that character set. Please try changing the line of code to read Zenpage admin fails to handle danish chars - masv - 19-03-2009 Well my hack, worked when I keept my db in western-European ISO, but after I tried to change it all into UTF-8, then I got into the problems. Your suggestion do not work when I try to keep it all in UTF-8, it do however with my original setup... What is strange, it that the encoding problem is only within zenpage admin gui on page/article title and in the gui it self.. If I uses danish chars in conection with image part of the gui there is no problems, so album/image text or for that matter content in pages/articles.. I have dropped a couple of screen dumps, on my webpage: To better explain/show my issue. Anyway thanks for your help and attention, may be it's something in my server setup.. return htmlspecialchars($this_string, ENT_QUOTES, getOption('charset')); Which is a universial fix to my change to the same function.. R:Martin Zenpage admin fails to handle danish chars - sbillard - 19-03-2009 There are probably some other places that need changing as well. I am testing them now and they should be in tonight's build. |