From: Giuseppe Bilotta Date: Fri, 21 Sep 2007 09:25:14 +0000 (+0000) Subject: Utils: we are an UTF-8 aware bot now, no need to ASCIIfy HTML entities X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=323fbbf6a49a376683ddc1644e6dc33a29a068ac;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Utils: we are an UTF-8 aware bot now, no need to ASCIIfy HTML entities --- diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb index 4a3a9c0a..11526370 100644 --- a/lib/rbot/core/utils/utils.rb +++ b/lib/rbot/core/utils/utils.rb @@ -31,24 +31,19 @@ rescue LoadError module ::Irc module Utils UNESCAPE_TABLE = { - 'laquo' => '<<', - 'raquo' => '>>', + 'laquo' => '«', + 'raquo' => '»', 'quot' => '"', 'apos' => '\'', - 'micro' => 'u', - 'copy' => '(c)', - 'trade' => '(tm)', - 'reg' => '(R)', - '#174' => '(R)', - '#8220' => '"', - '#8221' => '"', - '#8212' => '--', - '#39' => '\'', + 'micro' => 'µ', + 'copy' => '©', + 'trade' => '™', + 'reg' => '®', 'amp' => '&', 'lt' => '<', 'gt' => '>', - 'hellip' => '...', - 'nbsp' => ' ', + 'hellip' => '…', + 'nbsp' => ' ', =begin # extras codes, for future use... 'zwnj' => '‌',