4 def encode_ascii content
5 array_utf8 = content.unpack('U*')
7 array_utf8.each do |num|
11 # Numeric entity (&#nnnn;); shard by Stefan Scholl
12 array_enc.concat "&\##{num};".unpack('C*')
20 str.unpack('C*').pack('U*')
23 register("US-ASCII") do |obj|
25 alias decode decode_ascii
26 alias encode encode_ascii