Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决 visitor_nick 为 GBK 编码导致的乱码问题 #3

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

qhwa
Copy link

@qhwa qhwa commented Jul 1, 2013

主要改变:

  1. 解决TOP数据中 visitor_nick 编码为 GBK 引起的乱码问题
  2. 移除项目中的 String#to_utf / String#to_gbk monkey patch,现在使用 string_utf8 gem 处理

已知还存在的问题:

visitor_nick 有可能返回一个数组,需要进行处理。暂时未处理。

@qhwa
Copy link
Author

qhwa commented Jul 1, 2013

本来只是为了去掉 iconv 依赖,让这个 Gem 能在 Ruby 2.0 下运行。
但发现生产环境使用的是“0.2.4”版本,且代码有安全漏洞。
因此重新编码了生产环境(“0.2.4”)的功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant