Skip to content

Commit

Permalink
Forcing retunrned string as UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
shigeya authored and jferris committed Jun 14, 2011
1 parent 7fae718 commit b88041d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/capybara/driver/webkit/browser.rb
Expand Up @@ -90,7 +90,9 @@ def check

def read_response
response_length = @socket.gets.to_i
@socket.read(response_length)
s = @socket.read(response_length)
s.force_encoding("UTF-8")
s
end
end
end

0 comments on commit b88041d

Please sign in to comment.