adamsalter / test-project

Test project for showing examples/errors

This URL has Read+Write access

Adam Salter (author)
Sat Nov 07 01:24:38 -0800 2009
commit  1aee12d33b025deab709ef8e0270b79b068471d3
tree    651046c68e4215740c55214d0bfcfa4ea3ba7aed
parent  5c0fc04ebe6d77f9cae0bc0511a092383f54dc8d
README.md

Strange encoding errors.

Install ruby 1.9.1p243

Download. Rake db:migrate (it uses sqlite).

Ok, first thing to observe:

  1. Start server with ./script/server - WebBrick on my system

  2. Browse to:

http://0.0.0.0:3000/pages

observe (erb): Bad char:ú:ASCII-8BIT

  1. Browse to:

http://0.0.0.0:3000/users

observe (haml): Bad char: ú : UTF-8

  1. Create a new user called 'ü', this should crash the index.html.haml page when it tries to display the line with 'user.name'

Second,

Try the same steps as above whilst running under passenger.

  1. Browse to '/users'

It will throw an error 'invalid byte sequence in US-ASCII'