infews / keydown

An HTML5 presentation builder
MIT License
503 stars 66 forks source link

working with chinese character #16

Open zhibo-work opened 12 years ago

zhibo-work commented 12 years ago

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:inmatch' 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:ininitialize' 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:inslides' 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:ininvoke_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:instart' 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:inload' from C:/RailsInstaller/Ruby1.9.3/bin/keydown:19:in `

'