Microsoft KB Archive/50958

= Using Extended ASCII Character in LAN Manager Names =

Article ID: 50958

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft LAN Manager 1.0, when used with:
 * Microsoft MS-DOS 6.22 Standard Edition
 * Microsoft LAN Manager 1.1, when used with:
 * Microsoft MS-DOS 6.22 Standard Edition
 * Microsoft LAN Manager 2.0 Standard Edition, when used with:
 * Microsoft MS-DOS 6.22 Standard Edition
 * Microsoft LAN Manager 2.1 Standard Edition, when used with:
 * Microsoft MS-DOS 6.22 Standard Edition
 * Microsoft LAN Manager 2.1a, when used with:
 * Microsoft MS-DOS 6.22 Standard Edition
 * Microsoft LAN Manager 2.2 Standard Edition, when used with:
 * Microsoft MS-DOS 6.22 Standard Edition
 * Microsoft LAN Manager 2.2c, when used with:
 * Microsoft MS-DOS 6.22 Standard Edition

-



This article was previously published under Q50958



SUMMARY
This article explains which characters are acceptable in user and group names in OS/2 LAN Manager. International applications require extended ASCII characters, and extended character mapping is different for the Macintosh.



MORE INFORMATION
If you are using API calls such as NetUserAdd or NetGroupAdd (or any API call that accepts a name parameter such as username, groupname, password, computername, sharename, etc.), you must be sure to convert all name characters to uppercase letters before making your API call, including umlauted characters.

You should also note that the NET ADMIN interface does this automatically for all ASCII characters (including umlauted &quot;u,&quot; &quot;a,&quot; and &quot;o&quot; characters). For extended characters that don't have uppercase equivalents (such as umlauted &quot;e,&quot; &quot;i,&quot; and variations on these characters), standard uppercase characters are used. Since the standard C run-time functions do not support uppercase conversion on extended characters, you must provide these routines yourself before calling OS/2 LAN Manager APIs.

Also, the Macintosh must conform to the standard IBM ASCII character set to communicate with OS/2 LAN Manager.

Invalid Characters
The following characters are not valid in an OS/2 LAN Manager name field such as username, groupname, and password:

ASCII characters 1 - 31 decimal, as well as the following:

. &quot; / \ [ ] : | < > + = ;, ? *

Computernames disallow the period (.), as well as the above characters.

Uppercase Conversion
Standard lowercase ASCII characters a-z are converted to their uppercase equivalents A-Z. The following is a list of NET ADMIN uppercase conversions on the following extended ASCII characters:   ASCII Character           Uppercase ASCII Decimal          ->  Character ---          ---   129 (umlauted &quot;u&quot;)        154  umlauted &quot;U&quot; 130 e                     69  standard &quot;E&quot; 131 a                     65  standard &quot;A&quot; 132 (umlauted &quot;a&quot;)       142  umlauted &quot;A&quot; 133 a                     65  standard &quot;A&quot; 134 a                    143  uppercase version of 134 135                      128  uppercase version of 135 136 e                     65  standard &quot;A&quot; 137 (umlauted &quot;e&quot;)        69  standard &quot;E&quot; (no umlauted &quot;E&quot;                                                exists) 138 e                     69  standard &quot;E&quot; 139 (umlauted &quot;i&quot;)        73  standard &quot;I&quot; (no umlauted &quot;I&quot;                                                exists) 140 i                     73  standard &quot;I&quot; 141 i                     73  standard &quot;I&quot; 142                      142  (no change) 143                      143  (no change) 144                      144  (no change) 145                      146  uppercase version of 145 146                      146  (no change) 147 o                     79  standard &quot;O&quot; 148 (umlauted &quot;o&quot;)       153  umlauted &quot;O&quot; 149 o                     79  standard &quot;O&quot; 150 u                     85  standard &quot;U&quot; 151 u                     85  standard &quot;U&quot; 152 (umlauted &quot;y&quot;)        89  standard &quot;Y&quot; (no umlauted &quot;Y&quot;                                                exists) 153                      153  (no change) 154                      154  (no change) 155                      155  (no change) 156                      156  (no change) 157                      157  (no change) 158                      158  (no change) 159                      159  (no change) 160 a                     65  standard &quot;A&quot; 161 i                     73  standard &quot;I&quot; 162 o                     79  standard &quot;O&quot; 163 u                     85  standard &quot;U&quot; 164 n                    165  uppercase version of 164 165                      165  (no change)

Additional query words: 1.00 1.01 2.00 2.10 2.10a 2.20 extended

Keywords: KB50958

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.