I tried to build Ruby 1.9.3-p125 on Mac OS X Lion(10.7.3). But it can’t build psych library in ruby because missing yaml.h.
I just type below.
$ brew install libyaml
It solved
I tried to build Ruby 1.9.3-p125 on Mac OS X Lion(10.7.3). But it can’t build psych library in ruby because missing yaml.h.
I just type below.
$ brew install libyaml
It solved
Ruby is a good language. But little bit unuseful for japanese user include me.
I’ve got often invalid seqence error.
CSV.open(filename, 'r:cp932')
This code is bad.
I found a code in csv.rb below:
@encoding ||= Encoding.default_internal || Encoding.default_external
This line from /usr/local/ruby-1.9.1/lib/ruby/1.9.1/csv.rb.
I tried use only “Encoding.default_external = ‘cp932′”.
Encoding.default_external = 'cp932' CSV.open(filename, 'r')
It works.
Welcome to WordPress.com. After you read this, you should delete and write your own post, with a new title above. Or hit Add New on the left (of the admin dashboard) to start a fresh post.
Here are some suggestions for your first post.