From b3b03b8fcee539fc2e8971c83fe74c6688eda3b1 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Fri, 4 Dec 2009 12:03:08 +0100 Subject: use utf8 by default --- charset.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'charset.rb') diff --git a/charset.rb b/charset.rb index 2a1c7a6..418e5a5 100644 --- a/charset.rb +++ b/charset.rb @@ -17,9 +17,13 @@ # along with dudle. If not, see . # ############################################################################ -if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii") - USEUTF = true - +USEUTF = true +USEUTF = false if $cgi.user_agent =~ /.*MSIE [56]\..*/ +USEUTF = false if $cgi.cookies["ascii"][0] +USEUTF = true if $cgi.include?("utf") +USEUTF = false if $cgi.include?("ascii") + +if USEUTF NOSORT = CGI.escapeHTML('▾▴') SORT = CGI.escapeHTML('▴') REVERSESORT = CGI.escapeHTML('▾') @@ -40,8 +44,6 @@ if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii") PASSWORDSTAR = CGI.escapeHTML("•") else - USEUTF = false - NOSORT = '' SORT = CGI.escapeHTML('^') REVERSESORT = CGI.escapeHTML('reverse') -- cgit v1.2.3