Displaying 4 results from an estimated 4 matches for "compatibilityerror".
2011 Nov 03
4
JSON problem while installing rails
Hello all.
I try to install ruby on rails and I am litle stuck now because of
following error:
http://pastebin.com/BmFyuRs6
Can someone help me?
I using Windows 7 Ultimate, Ruby 1.9.2-p180 and RubyGems 1.8.11.
What I did before run: gem install rails?
1. installing ruby through ruby installer
2. C:\Users\h4cky\Downloads\rubygems-1.8.10>ruby setup.rb
3.
Problem with non-ascii characters in forms: "incompatible character encodings: UTF-8 and ASCII-8BIT"
2010 Aug 01
3
Problem with non-ascii characters in forms: "incompatible character encodings: UTF-8 and ASCII-8BIT"
...>
<p>
<%= f.submit ''Add'' %>
</p>
<% end %>
Now, this works fine..... until I submit special characters in one of the
fields.
If I for example write "Dodge" and "Børnout" in the form fields, I get an
error like this:
Encoding::CompatibilityError in Cars#index
Showing *app/views/cars/index.html.erb* where line *#19* raised:
incompatible character encodings: UTF-8 and ASCII-8BIT
Extracted source (around line *#19*):
16: </p>
17: <p>
18: <%= f.label :model %>
19: <%= f.text_field :model %>
20: </p&...
2011 May 12
0
utf8 characters in cucumber feature file
In my feature file, I have the following line:
When I search with <q=+Brontë> using xml
This blows up with:
incompatible character encodings: UTF-8 and ASCII-8BIT
(Encoding::CompatibilityError)
Is there a trick to getting non-ascii characters in a .feature file?
(I''m pretty sure that my feature file is saved in utf-8).
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyo...
2010 Apr 19
10
Overview of Ruby 1.9 encoding problem tickets
...st an
alias for "BINARY". This is actually ok, except for the way Ruby 1.9
handles concat with a non-BINARY string, e.g. UTF-8:
>> ''日本''.force_encoding(''BINARY'').concat(''語''.force_encoding(''UTF-8''))
Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8
Although the following works (equivalent to how Ruby 1.8 works):
>> ''日本''.force_encoding(''BINARY'').concat(''語''.force_encoding(''BINARY''))
=> "\xE6\x97\xA5...