![]() ![]() ![]() ![]() |
![]() |
|
![]() |
||
![]() |
graphnameが日本語だと文字化けするのです。kconvでsjis,euc-jp,utf8に変換してあげて渡してあげても文字化けする。
#!/usr/bin/env ruby require 'hatena/api/graph' require 'kconv' graph = Hatena::API::Graph.new('user', 'pass') graphname = "日本語" graph.post(graphname, Time.now, rand(10))
:graphname => URI::encode(graphname)
して渡してるんだよなぁ。ちょっとわからんくなってきた