kylejginavan / youtube_it

An object-oriented Ruby wrapper for the YouTube GData API
http://groups.google.com/group/ruby-youtube-library
595 stars 223 forks source link

warning: regexp match /.../n against to UTF-8 string #35

Closed ghost closed 12 years ago

ghost commented 12 years ago

youtube_it fails when query is an unicode string (for example):

c = YouTubeIt::Client.new c.videos_by(:query => "спят усталые игрушки")

issues

youtube_it.rb:18: warning: regexp match /.../n against to UTF-8 string youtube_it.rb:18: warning: regexp match /.../n against to UTF-8 string youtube_it.rb:18: warning: regexp match /.../n against to UTF-8 string

and returns wrong list of videos (different then one from youtube.com search ).

chebyte commented 12 years ago

thanks for this report, your changes was merged!