Contents

Roo

Text.define_utf8

Returns a new Text object with the same value as this Text object but with its encoding defined as UTF-8. 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)
var b = a.define_utf8