4images Forum & Community
4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: Murat on March 04, 2006, 11:11:07 AM
-
hello all.
I updated my gallery 1.7.1 up 1.7.2. after update charset problem pls help me.
my page charset is iso-8859-9 >turkish
:cry:
-
I have the same problem after updating from 1.7 to 1.7.2, natonal characters in category names, etc (things stored in database) are displayed incorrectly.
-
I have the same problem too. After updating from 1.7.1.
It is not everywhere. In the login Bereicht, all is correct (Beim nächsten Besuch automatisch anmelden?).
Otherwise "ä ü ö ß" incorrectly are represented.
Perhaps someone knows an advice.
greetings Patti
-
It's because the char system or better the handling is changed.
As i see it correctly now it has changed to utf-8 charset,
but it doesn't work proberly.
You have to save your main.php in utf-8 encoded,
and also change in main.php the charset to utf-8 then it should work.
-
Unfortunately your advice doesn't work.
There's definitely something wrong with the format_text function because when I commented it completely and put this instead:
function format_text($text, $html = 0, $word_wrap = 0, $bbcode = 0, $bbcode_img = 0)
{ return htmlspecialchars($text); }
everything was fine. But I'm not sure if this workaround is safe.
-
yep, the problem is,
that old entries in db are not encoded in utf-8 format.
with a fresh installation of 4images 1.72 my advice should work.
old entries should be converted.
-
Well, I fixed the problem by changing the line (in functions.php):
$trans = get_html_translation_table(HTML_ENTITIES);
into:
$trans = get_html_translation_table(HTML_SPECIALCHARS);
I think the original code doesn't work because HTML_ENTITIES table does not support the ISO-8859-2 character set which I use.
-
Well, I fixed the problem by changing the line (in functions.php):
$trans = get_html_translation_table(HTML_ENTITIES);
into:
$trans = get_html_translation_table(HTML_SPECIALCHARS);
I think the original code doesn't work because HTML_ENTITIES table does not support the ISO-8859-2 character set which I use.
thanks Kichus :wink:
-
Try the fix i attached to this post. Just replace the files in the zip-file.
-
Try the fix i attached to this post. Just replace the files in the zip-file.
thanks jan for fix. :)