Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 07:53 am EDT

Geeklog Forums

Question lang/charset in professional teme


Status: offline

r0berts

Forum User
Newbie
Registered: 07/23/06
Posts: 2
indescribable
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 Banging your head

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 Leaves me speechless 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
 Quote

All times are EDT. The time is now 07:53 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