kawauchi #649(2007/07/12 12:02 GMT) [ Ruby ] Rating0/0=0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
require 'Win32/Console' # http://rubyforge.org/projects/win32console require 'open-uri' require 'uconv' $cp = Win32::Console.OutputCP() #ENV['HTTP_PROXY'] = "http://proxy.example.com:8080/" uri = "http://ja.doukaku.org/feeds/comments/" begin str = open(uri).read rescue $stderr.puts $! else if $cp == 932 output = Uconv.u8tosjis(str) else output = str end print output end
Rating0/0=0.00-0+
[ reply ]
kawauchi #649() [ Ruby ] Rating0/0=0.00
Rating0/0=0.00-0+
[ reply ]