rosa-build/lib/ext/core/string.rb

7 lines
139 B
Ruby

# -*- encoding : utf-8 -*-
class String
def encode_to_default
force_encoding(Encoding.default_internal || Encoding::UTF_8)
end
end