jruby unicode extension e, f example

a = [0, 124, 0, 65, -40, 52, -35, 30, 57, 103, -40, 67, -36, -14, -40, 107, -34, 97, -40, 109, -33, -46, -40, 110, -36, -64, -40, 116, -35, 103, 0, 66, 0, 124].to_java :byte

puts a

b = java.lang.String.new(a, “UTF-16”)

puts b

require ‘fileutils’

FileUtils.touch(b)

 

I converted these from some java UTF-16 examples I had, and it actually worked, woot! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.