getprincipals action returns invalid XML document
When calling action=getprincipals, metacat returns the list of users and groups as an XML document with a character encoding set to "US-ASCII". However, users register from around the world, and many have registered with usernames that use characters beyond ASCII character set. For instance:
The above user's name (Mendez?) includes a non ASCII character.
Client side parsers will not parse the output from getprincipals because the XML document is not valid.
We need to either:
1) Change the output's character encoding to an all-inclusive one (UTF-8?), or
2) Change the registration CGI such that it only accepts character input in the ASCII range.
Also, there are a half-dozen LDAP entries that include non-ASCII characters, and so in option #2, these entries would have to be modified.
#2 Updated by Jing Tao over 11 years ago
Chris and I tried encoding="UTF-8" and it didn't work. Both firefox and chris's matlab code didn't this encoding.
So we tried encoding="iso-8859-1" and it works on both firefox and matlab.
iso-8859-1 is better than US-ASCII, but we should keep an eye on it down the road.