File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1067,6 +1067,15 @@ func setDefaultValue(v reflect.Value, params fieldParameters) (ok bool) {
1067
1067
// set causes a SET, rather than a SEQUENCE type to be expected
1068
1068
// tag:x specifies the ASN.1 tag number; implies ASN.1 CONTEXT SPECIFIC
1069
1069
//
1070
+ // When decoding an ASN.1 value with an IMPLICIT tag into a string field,
1071
+ // Unmarshal will default to a PrintableString, which doesn't support
1072
+ // characters such as '@' and '&'. To force other encodings, use the following
1073
+ // tags:
1074
+ //
1075
+ // ia5 causes strings to be unmarshaled as ASN.1 IA5String values
1076
+ // numeric causes strings to be unmarshaled as ASN.1 NumericString values
1077
+ // utf8 causes strings to be unmarshaled as ASN.1 UTF8String values
1078
+ //
1070
1079
// If the type of the first field of a structure is RawContent then the raw
1071
1080
// ASN1 contents of the struct will be stored in it.
1072
1081
//
You can’t perform that action at this time.
0 commit comments