senchalabs/jsduck — Issue #145: Need support for multi language in encoding
Author: mytharcher
Created: 2012-03-03 12:03:45+00:00
State: open

It's great that you made this tool. I began to use your documentaion generator `ext-doc` from Ext3 age, and it helps me a lot.

But as from the `ext-doc`, there is a problem that the tool does not support multi language in encoding, like Chinese. At that time I had to crack the `jar` file to modify the lost files in your svn to make the encoding for Chinese word right. And now the same thing happens in `jsduck`, with any line-break the Chinese word in head or tail of a line goes wrong to `�`. :-(

If I write this in my code:

/**
* @class js.util.Class
* 类管理
* @singleton
*/
js.util.Class = // ...

than the Chinese class name became `��理` in output. And some description line goes wrong, too:

/**
* 复制源对象上的属性到目标对象 => 复制源对象上的属性到目标��
* @static
*
* @param {Object...} source 复制源
* @param {Object} target (optional)复制目标 => 复制目��
* @param {Boolean} deep (optional)是否深度复制
*
* @return {Object}
*/
copy: function (source) { // ...

All my code can be found in this repo: . I fixed problem in `ext-doc` because I know a little about `Java`, but this time I have no idea about `Ruby`. So I hope you can help fix this. Thanks!