Method: E4U::Encode::Google::Utf8.to_google_unicode

Defined in:
lib/e4u/encode/google/utf8.rb

.to_google_unicode(str) ⇒ Object



6
7
8
9
10
11
# File 'lib/e4u/encode/google/utf8.rb', line 6

def self.to_google_unicode str
  puts "goolge_utf8_to_google_unicode" if $DEBUG
  str.gsub(UNICODE_REGEXP) do |matched|
    "&#x#{UNICODE[matched]};"
  end
end