From 967c201902dcd36899122b75d26ed663e7e0066e Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Sat, 24 Oct 2009 23:03:24 +0200 Subject: moved config to left + sample text for Sandbox --- charset.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'charset.rb') diff --git a/charset.rb b/charset.rb index 3460bd4..f71d37b 100644 --- a/charset.rb +++ b/charset.rb @@ -8,7 +8,7 @@ $utfcookie = CGI::Cookie.new("utf", "true") $utfcookie.path = "/" if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii") $utfcookie.expires = Time.now+1*60*60*24*365 - UTFASCII = "ASCII" + UTFASCII = "Change Charset to plain ASCII" BACK = CGI.escapeHTML("↩") YES = CGI.escapeHTML('✔') @@ -25,7 +25,7 @@ if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii") DELETE = CGI.escapeHTML("⌧") else $utfcookie.expires = Time.now-1*60*60*24*36 - UTFASCII = "UTF-8 (#{CGI.escapeHTML('↩✔✘?–↞←→↠✍⌧')})" + UTFASCII = "If you see all these characters: #{CGI.escapeHTML('↩✔✘?–↞←→↠✍⌧')} you can safely change the charset to UTF-8" BACK = CGI.escapeHTML("back") YES = CGI.escapeHTML('OK') -- cgit v1.2.3