search for: external_encoding

Displaying 6 results from an estimated 6 matches for "external_encoding".

2011 Mar 02
2
[ win32utils-Bugs-28904 ] Gem win32-eventlog v0.5.2 on Ruby 1.9.1 and 1.9.2
...1:40 2011 +++ \Users\bjansen\Development\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
2010 Mar 19
0
Rails, 1.9 & Encoding - does it work?
...in them. If there are accented characters, we insist that the file is UTF-8, but if there are no accented characters we don''t care what encoding the file is. It seems that w/ Rails 2.3.5 ALL files upload as ASCII-8BIT, regardless of OS $LANG setting, or actual file encoding. params[:file].external_encoding also appears to be ASCII-8BIT as well, so I can''t use content.encode("utf-8", xxx) because I''ve no idea what the file is *supposed* to be encoded as. Since I''m on OSX and $LANG == en_AU.UTF-8, shouldn''t all files default to UTF-8 unless explicitly told...
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
hi all, platform: debian lenny, ruby1.91.p0, passenger/apache-multithread, rails2.3 in vendor/postres and sql server via odbc. all current gems. i have legacy asp content on win2k servers that i wrap in rails controllers. this all worked great with ruby1.8, but now that we are dealing with encoded strings in ruby1.9, i am having page crashes randomly as users have cut and pasted high ascii code
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
2020 Mar 05
55
[PATCH 00/22] drm: Convert drivers to drm_simple_encoder_init()
A call to drm_simple_encoder_init() initializes an encoder without further functionality. It only provides the destroy callback to cleanup the encoder's state. Only few drivers implement more sophisticated encoders than that. Most drivers implement such a simple encoder and can use drm_simple_encoder_init() instead. The patchset converts drivers where the encoder's instance is embedded in
2020 Mar 05
55
[PATCH 00/22] drm: Convert drivers to drm_simple_encoder_init()
A call to drm_simple_encoder_init() initializes an encoder without further functionality. It only provides the destroy callback to cleanup the encoder's state. Only few drivers implement more sophisticated encoders than that. Most drivers implement such a simple encoder and can use drm_simple_encoder_init() instead. The patchset converts drivers where the encoder's instance is embedded in