Contents

Roo

Text.define_utf8!

Defines this Text object’s value to have a UTF-8 encoding and returns this Text object. If Roo is unable to define the encoding as UTF-8 then it returns Nothing.

var f = File("/Users/garry/Desktop/test.txt")
var a = f.read(10)
a.define_utf8!