I'm using Haml 2.2.2

I can reload the page and only get the error about 50% of the time.

Just to give a little more info, I'm using passenger 2.2.4 on Mac OSX  
10.5.7, default apache.
Here's my gem list for 1.9:

*** LOCAL GEMS ***

actionmailer (2.3.3)
actionpack (2.3.3)
activerecord (2.3.3)
activeresource (2.3.3)
activesupport (2.3.3)
addressable (2.1.0)
authlogic (2.1.1)
cgi_multipart_eof_fix (2.5.0)
columnize (0.3.0)
daemons (1.0.10)
extlib (0.9.12)
fastthread (1.0.7)
gem_plugin (0.2.3)
geoip (0.8.1)
geonames (0.2.2)
haml (2.2.2)
hpricot (0.8.1)
michael-ken (0.1.0)
mislav-will_paginate (2.3.8)
passenger (2.2.4)
rack (1.0.0)
rails (2.3.3)
rake (0.8.7)
RedCloth (4.2.2)
rubygems-update (1.3.5)
sqlite3-ruby (1.2.4)
thoughtbot-factory_girl (1.2.2)
thoughtbot-shoulda (2.10.2)
tzinfo (0.3.13)
wirble (0.1.3)


and gem list for the app:

   config.gem "thoughtbot-factory_girl", :lib =>  
"factory_girl", :source => "http://gems.github.com";
   config.gem "thoughtbot-shoulda", :lib => "shoulda", :source => 
"http://gems.github.com 
"
   config.gem "haml"
   config.gem "authlogic"
   config.gem "RedCloth"
   config.gem 'mislav-will_paginate', :version => '2.3.8', :lib =>  
'will_paginate', :source => 'http://gems.github.com'
   config.gem 'hpricot'
   config.gem 'tzinfo'
   config.gem 'geoip'
   config.gem 'geonames'


obviously this works fine under default Mac ruby (1.8.6)

-Adam

On 23/07/2009, at 2:40 AM, Nathan Weizenbaum wrote:

> What version of Haml are you running?
>
> On Wed, Jul 22, 2009 at 8:36 AM, Adam Salter  
> <[email protected]> wrote:
>
> I'm trying to migrate my local dev environment to Ruby 1.9
> and I'm getting some strange encoding errors trying to display some
> haml templates
>
> "incompatible character encodings: ASCII-8BIT and UTF-8"
>
> The weird thing is that the errors only happen intermittently:
> I'm using passenger to serve pages...
>
> Interestingly I don't get the encoding errors serving the files using
> WebBrick...
>
> The errors are also on weird lines like:
>
> 174:         %li
> 175:           %ul
> 176:             %li
> 177:               = link_to "Home", home_path
>
> It's hardly complicated... and doesn't involve any hits to the
> database... home_path actually resolves to '/' which is the same char
> in ASCII and UTF8??
>
> Any suggestions most welcome,
> Cheers,
>
>
>
> >
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to