Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

UTF-8 in IE6 doesn't show up properly on first load

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
icebreakr
Smarty n00b


Joined: 08 Sep 2003
Posts: 2
Location: Slovenia, EU

PostPosted: Mon Sep 08, 2003 9:29 am    Post subject: UTF-8 in IE6 doesn't show up properly on first load Reply with quote

I'm using the header:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<LINK REL="SHORTCUT ICON" HREF="{$pri->www_root}/favicon.ico">
<link rel="icon" href="{$prj->www_root}/favicon.ico" />
<title>{$pri->title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

.... but every time the page loads the UTF-8 isn't displayed properly. IE6 automatically detects "Western European (DOS)" mode in AutoSelect. When I reload the page with refresh/F5 everything works fine. Any clues how to fix that? Experienced the same problem?

Thanks all!
Ice
Back to top
View user's profile Send private message Visit poster's website
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Mon Sep 08, 2003 9:36 am    Post subject: Reply with quote

although not a real smarty-problem: i had similar problems with IE and solved it by sending a header with:
Code:
header('Content-Type: text/html; charset=utf-8');

before display().

this fixed it for me.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
icebreakr
Smarty n00b


Joined: 08 Sep 2003
Posts: 2
Location: Slovenia, EU

PostPosted: Mon Sep 08, 2003 9:46 am    Post subject: Reply with quote

7 minutes... damn, you're good Wink
T h a n k s! The problem solved and hopefully this will help others, too...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP