Unicode Characters in User Names and Email Addresses - Unicode Considerations - Foundation 23.1 - Foundation 23.1 - Ready - OnBase - external

Unicode Considerations

Platform
OnBase
Product
Unicode Considerations
Release
Foundation 23.1
License

By default, Unicode characters are not supported in the user names or email addresses of accounts configured for the eCommerce Client site. However, you can configure the following settings in the eCommerce web.config file to allow Unicode characters in these contexts.

Option

Description

UserNamePattern

The UserNamePattern setting ( <add key="UserNamePattern" value=""/> ) allows you to specify regular expressions to limit the type of user names that users can configure when registering a new account (e.g., to allow users to enter Unicode characters when registering a new user name).

Note:

The UserNamePattern setting affects validation on the server side. The server uses C# code, so the regular expression you use should be formatted to work with C#.

For example, a value of [\u0000-\uFFFF]+ allows users to register a user name containing any Unicode character.

This setting should be configured to accept the same values as the values configured for the UserNameClientPattern setting.

For more information on regular expressions, see http://msdn.microsoft.com/en-us/library/hs600312.aspx.

UserNameClientPattern

The UserNameClientPattern setting ( <add key="UserNameClientPattern" value=""/> ) allows you to specify regular expressions to limit the type of user names that users can configure when registering a new account (e.g., to allow users to enter Unicode characters when registering a new user name).

Note:

The UserNameClientPattern setting affects validation on the client side. The client uses JavaScript code, so the regular expression you use should be formatted to work with JavaScript.

For example, a value of ^[\u0000-\uFFFF]+$ allows users to register a user name containing any Unicode character.

This setting should be configured to accept the same values as the values configured for the UserNamePattern setting.

For more information on using regular expressions with JavaScript, see http://msdn.microsoft.com/en-us/library/ie/h6e2eb7w(v=vs.94).aspx.

UserNameMessage

The UserNameMessage setting ( <add key="UserNameMessage" value=""/> ) allows you to specify a message to be displayed to users who attempt to register a user name that does not meet your UserNamePattern criteria.

EmailPattern

The EmailPattern setting ( <add key="EmailPattern" value=""/> ) allows you to specify regular expressions to limit the type of email account that users can configure when registering a new account (e.g., to allow users to enter Unicode characters when registering an email address).

Note:

The EmailPattern setting affects validation on the server side. The server uses C# code, so the regular expression you use should be formatted to work with C#.

For example, a value of [\u0000-\uFFFF]+ allows users to register an email address containing any Unicode character.

This setting should be configured to accept the same values as the values configured for the EmailClientPattern setting.

For more information on regular expressions, see http://msdn.microsoft.com/en-us/library/hs600312.aspx.

EmailClientPattern

The EmailClientPattern setting ( <add key="EmailClientPattern" value=""/> ) allows you to specify regular expressions to limit the type of email account that users can configure when registering a new account (e.g., to allow users to enter Unicode characters when registering an email address).

Note:

The EmailClientPattern setting affects validation on the client side. The client uses JavaScript code, so the regular expression you use should be formatted to work with JavaScript.

For example, a value of ^[\u0000-\uFFFF]+$ allows users to register an email address containing any Unicode character.

This setting should be configured to accept the same values as the values configured for the EmailPattern setting.

For more information on using regular expressions with JavaScript, see http://msdn.microsoft.com/en-us/library/ie/h6e2eb7w(v=vs.94).aspx.

EmailMessage

The EmailMessage setting ( <add key="EmailMessage" value=""/> ) allows you to specify a message to be displayed to users who attempt to configure an email address that does not meet your EmailPattern criteria.