Hi,
I have to support kanji emails and my test rig uses
def read_fixture(action)
IO.readlines("#{FIXTURES_PATH}/mail_forwarder/#{action}")
end
which bombs when I throw a raw kanji email at it, i get this:
test/unit/mail_forwarder_test.rb:37:in `readlines'
test/unit/mail_forwarder_test.rb:37:in `read_fixture'
test/unit/mail_forwarder_test.rb:45:in
assert_forwarded_an_identical_copy_of_mail' test/unit/mail_forwarder_test.rb:32:intest_should_forward_an_identical_copy_of_kanji_mail’
1 tests, 0 assertions, 0 failures, 1 errors
what method should I be using to read the lines of the utf-8 file?
Thanks
Robin