Create a gist now

Instantly share code, notes, and snippets.

# -*- encoding: utf-8 -*-
# -
require 'psych'
ary = ["Jakub Kuźma", "Timo Rößner"]
p ary.first.encoding
builder ={})
builder << ary
ast = builder.tree
io =
io.set_encoding Encoding::UTF_8
str = io.string
p str
p str.encoding
puts str.gsub(/ !!null \n/, " \n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment