当我尝试在Ramaze和Ruby 1.9中上传文件时,获取“US-ASCII中的无效字节序列”

时间:2023-01-06 13:30:35

I guess the default encodings have changed with 1.9, but I thought Ramaze was supposed to be fully 1.9 compatible? I'm really not sure what going on here. Thanks for any help!

我猜默认编码已经改变了1.9,但我认为Ramaze应该完全兼容1.9?我真的不确定这里发生了什么。谢谢你的帮助!

1 个解决方案

#1


Okay, I found this commit which was added to the tree 3 days after the 1.0 release:

好的,我发现这个提交在1.0发布后3天被添加到树中:

http://github.com/rack/rack/commit/44ed4640f077504a49b7f1cabf8d6ad7a13f6441

Patching didn't work, but cloning HEAD and replacing my installation did. It's still pretty tough to develop a Ruby 1.9 app... but it can only get easier!

补丁不起作用,但克隆HEAD并替换我的安装。开发Ruby 1.9应用程序仍然非常困难......但它只会变得更容易!

#1


Okay, I found this commit which was added to the tree 3 days after the 1.0 release:

好的,我发现这个提交在1.0发布后3天被添加到树中:

http://github.com/rack/rack/commit/44ed4640f077504a49b7f1cabf8d6ad7a13f6441

Patching didn't work, but cloning HEAD and replacing my installation did. It's still pretty tough to develop a Ruby 1.9 app... but it can only get easier!

补丁不起作用,但克隆HEAD并替换我的安装。开发Ruby 1.9应用程序仍然非常困难......但它只会变得更容易!