* X501Name.cs: Added support for (some cases of) T.61 strings, like
the latin-1 encoded accentued characters founds in some DN. Fix bug
#77295.
svn path=/trunk/mcs/; revision=69516
+2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
+
+ * X501Name.cs: Added support for (some cases of) T.61 strings, like
+ the latin-1 encoded accentued characters founds in some DN. Fix bug
+ #77295.
+
2006-12-11 Sebastien Pouliot <sebastien@ximian.com>
* PKCS12.cs: Fix DSA certificates (with parameters) and don't throw
sb2.Append ((char)s.Value[j]);
sValue = sb2.ToString ();
} else {
- sValue = Encoding.UTF8.GetString (s.Value);
+ if (s.Tag == 0x14)
+ sValue = Encoding.UTF7.GetString (s.Value);
+ else
+ sValue = Encoding.UTF8.GetString (s.Value);
// in some cases we must quote (") the value
// Note: this doesn't seems to conform to RFC2253
char[] specials = { ',', '+', '"', '\\', '<', '>', ';' };