开发者

Documentation generated by Yard and spanish accents

开发者 https://www.devze.com 2023-04-10 00:47 出处:网络
I\'m generating documentation with Yard, and all my comments have been written in Spanish.开发者_如何学Python The problem is that the documentation generated by Yard contains � instead of Spanish acc

I'm generating documentation with Yard, and all my comments have been written in Spanish.开发者_如何学Python The problem is that the documentation generated by Yard contains � instead of Spanish accents.

I've used "yardoc" command. I'm using ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] and Rails 3.0.7 Running on Windows 7


Probably your source files are encoded in ISO Latin 1 while Yard expects them to be in UTF-8.

You could instruct Yard to read your files in ISO Latin 1 instead of the default UTF-8, but I strongly suggest you to re-encode your source files as UTF-8 files. Any decent text editor should be able to do that with one or two clicks.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号