3 def encode_unile content
4 array_utf8 = content.unpack("U*")
6 array_utf8.each do |num|
11 array_enc << (num & 0xFF)
12 array_enc << (num >> 8)
19 array_enc=str.unpack('C*')
21 0.step(array_enc.size-1, 2){|i|
22 array_utf8 << (array_enc.at(i) + array_enc.at(i+1)*0x100)
27 register(UNILE) do |obj|
29 alias decode decode_unile
30 alias encode encode_unile