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

昵称应过滤特殊字符 #12

Open
xhacker opened this issue Aug 30, 2012 · 4 comments
Open

昵称应过滤特殊字符 #12

xhacker opened this issue Aug 30, 2012 · 4 comments

Comments

@xhacker
Copy link
Member

xhacker commented Aug 30, 2012

试了一下用 Emoji,然后出错了……不过其实注册上了,但之后登录时也会出错。

@lianghai
Copy link

那些绘文字超出了 Unicode BMP,你需要检查数据库是不是启用了对超出 Unicode BMP 字符的支持。
参见: http://www.zhihu.com/question/19731361

梁海(LIANG Hai)

在 2012年8月31日,2:09,LIU Dongyuan [email protected] 写道:

试了一下用 Emoji,然后出错了……不过其实注册上了,但之后登录时也会出错。


Reply to this email directly or view it on
GitHubhttps://github.com//issues/12.

@xhacker
Copy link
Member Author

xhacker commented Aug 31, 2012

没什么必要为了这种奇怪的情况修改数据库的字符集,直接不允许使用超出范围的字符比较好。

@lianghai
Copy link

有些生僻汉字也在 BMP 之外。如果性能影响不大,我建议启用对整个 Unicode 字符集的支持。

梁海(LIANG Hai)

在 2012年8月31日,8:38,LIU Dongyuan [email protected] 写道:

没什么必要为了这种奇怪的情况修改数据库的字符集,直接不允许使用超出范围的字符比较好。


Reply to this email directly or view it on
GitHubhttps://github.com//issues/12#issuecomment-8179364.

@xhacker
Copy link
Member Author

xhacker commented Aug 31, 2012

我们的 MySQL 版本比较老(5.1),还不能支持 utf8mb4。

柳东原

On 2012年8月31日Friday at 上午10:20, 梁海 wrote:

有些生僻汉字也在 BMP 之外。如果性能影响不大,我建议启用对整个 Unicode 字符集的支持。

梁海(LIANG Hai)

在 2012年8月31日,8:38,LIU Dongyuan <[email protected] (mailto:[email protected])> 写道:

没什么必要为了这种奇怪的情况修改数据库的字符集,直接不允许使用超出范围的字符比较好。


Reply to this email directly or view it on
GitHubhttps://github.com//issues/12#issuecomment-8179364.


Reply to this email directly or view it on GitHub (#12 (comment)).

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

No branches or pull requests

2 participants