为什么用户名中没有空格和特殊字符? [英] why username does not have spaces and special characters in it?

查看:243
本文介绍了为什么用户名中没有空格和特殊字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个客户端-asp.net上的服务器数据库应用程序,用于进行私有组织中的所有通信.
我想知道为什么用户名中除了下划线(_)之外没有任何空格和特殊字符?

i am working on a client - server database application on asp.net for taking all the communication in an private organisation.
i want to know why usernames does not have any spaces and special character except underscore(_) in them??

推荐答案

这完全是一个选择问题.许多站点允许连字符(-)和句号(.)作为用户ID的一部分,并且电子邮件地址变得越来越普遍,因此此处可以接受其他一些字符.不允许使用空格的主要原因是,如果包含空格,则很难从更长的字段中解析名称.在设计自己的系统时,尽管可以遵循大多数用户熟悉的普遍接受的约定,但是您可以自由接受任何想要的字符.
It''s purely a matter of choice. Many sites allow hyphen (-) and full stop (.) as part of userid, and email address is becoming more and more common, so some other characters are acceptable there. The main reason for not allowing spaces is that it makes it more difficult to parse the name out of a longer field if spaces are included. When designing your own system you have the freedom to accept any characters that you wish, although it is best to follow the generally accepted conventions that most users are familiar with.


这取决于应用程序问题以及他们处理用户名的方式,一些允许的空格等.
It depends on the application in question and the way they handle usernames, some allow spaces etc.


这篇关于为什么用户名中没有空格和特殊字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆