使用Ruby Shoes,如果我做这个非常简单的测试:
Shoes.app :width => 400, :height => 500 do
para "testé"
end
然后它工作并显示“testé”。
但是,如果我尝试通过课程进行涂片,我会收到错误。
主要文件skrolk.shoes:
require_relative './headerAjout.rb'
Shoes.app :width => 400, :height => 500
包含的文件headerAjout.rb
# encoding: utf-8
class HeaderAjout < Shoes
url '/', :index
def index
para "testé"
end
end
错误是“无效的多字节字符(UTF-8)”。 我的Notepad ++设置为以UTF-8编辑。
有任何线索吗?
此致 Dassadar
答案 0 :(得分:0)
我在鞋子4(https://github.com/shoes/shoes4)和鞋子3.2 9http://shoesrb.com/downloads/上测试了你的代码,两者都运行良好。
所以它在这些版本中固定或者特定于平台:)