# File lib/jpmobile/emoticon.rb, line 37 def self.external_to_unicodecr_au(str) str.gsub(AU_SJIS_REGEXP) do |match| sjis = match.unpack('n').first unicode = AU_SJIS_TO_UNICODE[sjis] unicode ? ("&#x%04x;"%unicode) : match end end