working with chinese character
Opened this issue · 0 comments
Hi
I am completely new to ruby, and I installed the whole environment just to use keydown.
The Chinese character requires UTF-8 encode to work well (in Python or other language)
Since I am new to Ruby, could you tell me how to fix this?
I put my error info down below for your reference.
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/keydown-0.9.2/lib/keydown/s
lidedeck.rb:48:in match': invalid byte sequence in GBK (ArgumentError) from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/keydown-0.9.2/ lib/keydown/slidedeck.rb:48:in
match'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/keydown-0.9.2/
lib/keydown/slidedeck.rb:48:in set_title' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/keydown-0.9.2/ lib/keydown/slidedeck.rb:16:in
initialize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/keydown-0.9.2/
lib/keydown/tasks/slides.rb:22:in new' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/keydown-0.9.2/ lib/keydown/tasks/slides.rb:22:in
slides'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.14.6/li
b/thor/task.rb:22:in run' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.14.6/li b/thor/invocation.rb:118:in
invoke_task'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.14.6/li
b/thor.rb:263:in dispatch' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.14.6/li b/thor/base.rb:389:in
start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/keydown-0.9.2/
bin/keydown:6:in <top (required)>' from C:/RailsInstaller/Ruby1.9.3/bin/keydown:19:in
load'
from C:/RailsInstaller/Ruby1.9.3/bin/keydown:19:in `