From 323fbbf6a49a376683ddc1644e6dc33a29a068ac Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 21 Sep 2007 09:25:14 +0000 Subject: [PATCH] Utils: we are an UTF-8 aware bot now, no need to ASCIIfy HTML entities --- lib/rbot/core/utils/utils.rb | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) 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' => '‌', -- 2.39.5