Hi!
I a have a character coding problem - I have set up my Linux system (Mandrake) with UTF8, it was the default, so basically all work done on that machine are in character coding UTF8. That means my webserver is tuned into UTF8 also which creates a problem when people are accesing my site. The problem is, as with phpwebgallery, the files are in ISO-8859-1 and when displaying them the webreader is assuming that they are in UTF8 which creates a mismatch concerning Swedish special characters, like åäö. However, it easy to fix, just change the webreaders charactercoding to ISO-8859-15 and the problem is gone... But with phpwebgallery is needed to be done on every single new page.... Is there away to implement a charactercoding info on all genereted webpages? or in some header information.
Thanks for any kind of help, I will look into this problem myself laso. But it would nice not to have to invent the wheel once more :-)
Anders
Hi !
I understand your problem very well... I've been having this problem with the japanese version (soon available) of PhpWebGallery... The right way to solve it is to use another var in the language file :
$lang['charset'] = "shift_jis";
Then, we have to use this var in every page of the application :
<meta http-equiv="Content-Type" content="text/html; $lang['charset']">
in the <head> tag
This is not available in version 1.2, but it will be in version 1.3. If you want to have this functionnality, add this code on each page in the head tag :
echo '<meta http-equiv="Content-Type" content="text/html; '.$lang['charset'].'">'
Offline