On Tue, Feb 18, 2014 at 8:52 AM, Michael Zawoysky <lists / ruby-forum.com> wrote:

> splash.rb:18: invalid multibyte char (US-ASCII)

Your example still doesn't throw that exception for me, but since I
don't have an info about your environment I'll just suggest that you
try this with your values:

browser.goto("http://example.com/")
string = "Michael's"
puts "#{browser.text.encoding} #{string.encoding}"

You can specify encoding for your whole file, e.g. add the line
  # encoding: UTF-8
to the head of your file, or as needed for specific strings, e.g.
  string.force_encoding("UTF-8")

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder / gmail.com
http://about.me/hassanschroeder
twitter: @hassan