-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
20 lines (16 loc) · 2.06 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(中文)
为了解决一些我自己使用上的一些编码问题,我fork了这个版本。同样也希望能够给遇到类似问题的朋友有所帮助。
可能有一些实现是quick and dirty的,但我会尝试尽量让实现更通用和正确。
如果有时间,我会尝试梳理一下ruby的内部编码体系,并尝试进行较彻底的改进。但是我现在还没有找到ruby内部实现的关于的编码方面的设计文档和原则,所以也不太清楚自己的修改是不是合理。
我要实现的目标:
* 在中文的windows系统上,内部编码使用utf-8的情况下,写ruby代码时不再需要显式的转码操作,底层自动做好转码操作,给到ruby代码里面的都是编码成内部编码的。
* 在中文的windows系统上,输入和输出的中文都没有问题,都不出现乱码,包括所有的异常和出错信息。
* 无论在什么语言的windows系统上,我都可以使用不同的预算的ruby脚本文件,并且不需要做显式的转码操作,自动在内外部交互的边界进行编码的转换。
(English)
In order to solve some coding problem of my own use, I forked this version, hope this will help others who meet the same problem(s).
Some code of this repo. may be quick and dirty, but I'll try my best to make this more universal and correct.
I would try to improve internal coding system of Ruby if I am free, but currently I hadn't found any rules and docs of internal coding system of Ruby, which accounts for the uncertainty of improvements.
My goals:
* In Chinese Windows with UTF-8 internal coding, no longer need to write explicit codes of coding when writing Ruby programs, the Ruby interpreter will do coding works automatically.
* In Chinese Windows with UTF-8 internal coding, no more unrecognizable characters in inputs and outputs that contain Chinese will be showed, including all of error messages.
* No matter the language of Windows, no longer need to write explicit codes of coding when writing Ruby programs, converting coding automatically in the border between internal and external.