summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-21 09:25:14 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-21 09:25:14 +0000
commit323fbbf6a49a376683ddc1644e6dc33a29a068ac (patch)
tree3dee232171196e551cd4de0a9cf5abbf8b47b832
parent1f3125a35fb772f67b151ae7e7e969a53e4c9086 (diff)
Utils: we are an UTF-8 aware bot now, no need to ASCIIfy HTML entities
-rw-r--r--lib/rbot/core/utils/utils.rb21
1 files 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' => '&#8204;',