ruby-1.9
Why are two strings with same bytes and encoding not identical in Ruby 1.9?
In Ruby 1.9.2, I found a way to make two strings that have the same bytes, same encoding, and are equal, but they have a different length and different characters returned by [].[详细]
2023-01-26 07:38 分类:问答How to avoid Encoding::CompatibilityError with ruby 1.9 and mechanize form submit?
Currently, I am testing a ruby script that uses mechanize with ruby 1.9.2 (Ubuntu Lucid packages). The first line sets following options:[详细]
2023-01-23 04:00 分类:问答Ruby 1.9 -Ku, mem_cache_store and invalid multibyte escape error
Originally this bug was posted here: https://rails.lighthouseapp.com/projects/8994/tickets/5713-ruby-19-ku-incompatible-with-mem_cache_store[详细]
2023-01-23 03:29 分类:问答Talking with a Ruby daemonized process
I use Ruby 1.9 and the following method inside my program: Process.daemon Then, when I open a new terminal, I would like to call my daemonized program (named my_program) and send to it a message. S[详细]
2023-01-21 23:30 分类:问答What does "Anonymous modules have no name to be referenced by" really mean?
I\'m upgrading my Rails app to work with Ruby 1.9 and I keep encountering errors like this: Anonymous modules have no name to be referenced by[详细]
2023-01-21 19:51 分类:问答Rails 3 invalid multibyte char (US-ASCII)
I found a similar post here but I can\'t solve the problem anyway. I got this /home/fra/siti/Pensiero/db/seeds.rb:32: invalid multibyte char (US-ASCII)[详细]
2023-01-20 04:06 分类:问答Ruby 1.9 strip not removing whitespace
Im doing some screen scraping and im getting back a string that appears to end with whitespace but neither string.strip or strip.gsub(/\\s/u, \'\') removes the character.[详细]
2023-01-19 11:50 分类:问答ruby1.9, rails & $SAFE=1
Trying to use $SAFE=1 (just wanted to put some processing in a drb server) make rails unusable: it can\'t load some paths, data recovered from the DB are tainted, etc. For instance:[详细]
2023-01-18 19:28 分类:问答Ruby Version Discrepancy when running server
$ ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.3.0] $ rails s => Booting WEBrick[详细]
2023-01-17 19:06 分类:问答How to check a String if it's an ASCII or not?
For example something like: \"ASCII\".is_asci开发者_StackOverflowi? # => true \"تجربة\".is_ascii? # => false[详细]
2023-01-17 10:22 分类:问答