# File lib/jpmobile/emoticon.rb, line 124 def self.unicodecr_to_utf8(str) str.gsub(/&#x([0-9a-f]{4});/i) do |match| unicode = $1.scanf("%x").first if UNICODE_TO_SJIS[unicode] || SOFTBANK_UNICODE_TO_WEBCODE[unicode-0x1000] [unicode].pack('U') else match end end end