Welcome to Geeklog, Anonymous Sunday, December 01 2024 @ 11:50 am EST
Geeklog Forums
Question lang/charset in professional teme
Hi, I've spent all day on this:
Created a language file latvian_utf-8.php (with charset utf-8 ), changed the variables in config.php, checked apache config multiple times (AddDefaultCharset utf-8 ).
Problem: looked fine when I browse anonymously (FireFox). As soon as I log in as one of the users (I migrated this site from previous 1.3 version) or admin - I get iso-8859-1 charset displayed and if I change in browser through view to utf-8 all looks fine. This of course is due to http headers (checked with live headers) being sent as Content-Type: text/html; charset=iso-8859-1
Solution?? - Finally when I gave up my shaken logic I added a new user and after I logged in the problem had disappeared. Then I checked the user language preferences and surely enough - I had english for those 2 previous users Changed them to Latvian_UTF-8 and all works like a charm!!!
Question: Where the decision is made on what http header to send? It appears the default charset from config.php only goes for all users who have language=NULL in users table. where in geeklog or theme files does that NOT-NUL language come into play?
thank you,
Roberts LJAA, EFPT, PSIHE
Created a language file latvian_utf-8.php (with charset utf-8 ), changed the variables in config.php, checked apache config multiple times (AddDefaultCharset utf-8 ).
Problem: looked fine when I browse anonymously (FireFox). As soon as I log in as one of the users (I migrated this site from previous 1.3 version) or admin - I get iso-8859-1 charset displayed and if I change in browser through view to utf-8 all looks fine. This of course is due to http headers (checked with live headers) being sent as Content-Type: text/html; charset=iso-8859-1
Solution?? - Finally when I gave up my shaken logic I added a new user and after I logged in the problem had disappeared. Then I checked the user language preferences and surely enough - I had english for those 2 previous users Changed them to Latvian_UTF-8 and all works like a charm!!!
Question: Where the decision is made on what http header to send? It appears the default charset from config.php only goes for all users who have language=NULL in users table. where in geeklog or theme files does that NOT-NUL language come into play?
thank you,
Roberts LJAA, EFPT, PSIHE
9
10
Quote
All times are EST. The time is now 11:50 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content