RubyMine 和特殊字符,显示 ?输出结果时
更新编辑:这是所需的信息。
使用 Rubymine 3.2.4 和 EAP 版本 (113.2)。 JRuby:1.6.6-p357 Windows 7 64 位
我在 IDE 中仔细检查了 UTF8 配置:文件 ->设置->一般情况下,在位于 ....RubyMine40\config\options\encoding.xml 的文件中,两者都设置为 UTF-8。 我尝试在 .feature 文件中设置 #encoding: utf-8,但它仍然将我的特殊字符 (æøå) 显示为 ?。实际上,如果我在 Notepad++ 中打开在 RubyMine 4.0 (EAP) 中创建的 .feature 文件下的代码中使用这些字符,它甚至不会运行测试
Feature: This is some test # Feature = Egenskap in norwegian
,并且它说它以 ANSI 编码为 UTF-8。
这个问题
我对特殊字符有疑问,就我而言,是 æ ø å。我使用 RubymMine 开发黄瓜测试。我的 IDE 编码设置为使用 UTF-8。
问题是,当我在 RubyMine 中运行测试时,控制台只是将我的特殊字符 (æøå) 替换为 ?,这很烦人,当我导出测试的 HTML 时也会发生这种情况。我可以用我的语言编写 .feature 文件,没有问题,使用#language:功能文件顶部没有注释。当 Rubymine 输出到控制台并导出结果时,它只会变得混乱。
有没有人遇到过类似的问题并且知道如何解决?或者可以给我指出正确的方向吗?
Update-edit: Here is the requested information.
Used both Rubymine 3.2.4 and the EAP version (113.2).
JRuby: 1.6.6-p357
Windows 7 64 bit
I've double checked the UTF8 config, in the IDE: File -> Settings -> General, and in the file located in ....RubyMine40\config\options\encoding.xml, both are set to UTF-8.
I have tried to set #encoding: utf-8 in my .feature file, but it still shows my special chars (æøå) as ?. Actually, it won't even run the test if I use these characters in the code under
Feature: This is some test # Feature = Egenskap in norwegian
I opened the .feature file that I created in RubyMine 4.0 (EAP) in Notepad++, and it says its coded in ANSI as UTF-8.
The question
I have a problem with special characters, in my case, æ ø å. I use RubymMine to develop cucumber tests. My IDE encoding is set to use UTF-8.
The problem is, that when I run the tests in my RubyMine, the console simply replace my special chars (æøå) with ?, which is annoying, and this also happens when I do a HTML export of the tests. I can write the .feature files in my langauge no problem,using #language: no comment at the top of feature file. It only gets messy when Rubymine outputs to console, and export the results.
Has anyone had a similar problem and knows how to solve it? Or can just point me in the right direction?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论