Displaying 7 results from an estimated 7 matches for "default_extern".
Did you mean:
default_external
2010 Feb 24
0
undefined method `default_external=' for Encoding:Class
undefined method `default_external='' for Encoding:Class
after doing rake db:create ?
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe...
2011 Mar 02
2
[ win32utils-Bugs-28904 ] Gem win32-eventlog v0.5.2 on Ruby 1.9.1 and 1.9.2
...evelopment\eventlog.rb Wed Mar 02 15:51:25 2011
@@ -11,6 +11,9 @@
# Return the portion of the string up to the first NULL character. This
# was added for both speed and convenience.
def nstrip
+ if !self.ascii_only?
+ self.force_encoding($>.external_encoding || Encoding.default_external)
+ end
self[ /^[^\0]*/ ]
end
end
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=28904&group_id=85
2012 Feb 17
2
Bug in unicorn_rails when Encoding.default_internal is set
Hi,
We recently made the switch to 1.9 for our large rails 2.3.14 project
and ran into some strange behavior from the unicorns where encoding
problem would cause blank 500 pages to be "randomly" served to users
(we run ~10 x 5 unicorn workers behind our load balancer). We found
that unicorn workers were dying when someone requested a url with
utf-8 in it, and died in such a way that
2009 Apr 12
9
invalid byte sequence utf-8 OR best option to sanitize content brought in with net::http? single non-utf character causes rails to crash
...fferent ways to make
it do so, results in nothing but more wasted time. so i need a good
rails solution that "just works."
4) it occurs to me that it could also be that ruby is setting the
default to acsii for net::http regardless of how iis is sending it.
how do i check/set the encoding.default_external in rails. why does
rails remove the Encoding class. it isn''t there in console, but is in
irb. i dislike rails remvoing native ruby classes.
please. i am so close to having ruby1.9/rails2.3 working, but this
encoding stuff is really a hassle.
--~--~---------~--~----~------------~------...
2009 Oct 15
5
invalid multibyte character error
Hi.
When I try to use multibyte characters in my rails controller I get an
invalid multibyte characters error
(<rails_app>/app/controllers/admin_controller.rb:6: invalid multibyte
char (US-ASCII)).
Here is my controller:
contoller AdminController < ApplicationController
def read
@title = ''Заголовок страницы''
end
end
Here is my haml template extraction:
...
2010 Apr 19
10
Overview of Ruby 1.9 encoding problem tickets
SUMMARY:
--------
I tried to identify the general and root causes for these problems
with 1.9, by taking into account non-utf encoding, current patches,
comments and ideas. I used ticket #2188 as base for explanations.
This is a long read. I wanted to include all the relevant information
in one place. I also included information about related tickets in LH
and their status. I decided that adding
2010 Jul 01
25
Encoding problems with Rails 3 + Ruby 1.9.1 (big surprise)
I have kind of an interesting problem.
I have a form wherein people enter information. Big surprise. If they
enter any "weird" characters like ø or é or whatever, the form will
submit and all is well. However, I have a select box for the state
which, if you''re looking at Spain, has states like A Coruña, Cádiz and
País Vasco. These are pulled from the database which is set to