diff options
author | Rene Meusel <[email protected]> | 2017-10-11 22:27:58 +0200 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-11-09 16:05:17 -0500 |
commit | ce88363acee0c0b403891208def5e54c0633a752 (patch) | |
tree | ba6276b5b701458ef9fec1f7c2b3d90089d2b254 /src/lib | |
parent | 8a93eae8b6f159c0c66bee0f04bf446ef0bc3ac4 (diff) |
allow encoding of UTF-8 strings
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/asn1/asn1_str.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/asn1/asn1_str.cpp b/src/lib/asn1/asn1_str.cpp index aabfd0048..43331d414 100644 --- a/src/lib/asn1/asn1_str.cpp +++ b/src/lib/asn1/asn1_str.cpp @@ -113,10 +113,7 @@ ASN1_Tag ASN1_String::tagging() const */ void ASN1_String::encode_into(DER_Encoder& encoder) const { - std::string value = iso_8859(); - if(tagging() == UTF8_STRING) - value = Charset::transcode(value, LATIN1_CHARSET, UTF8_CHARSET); - encoder.add_object(tagging(), UNIVERSAL, value); + encoder.add_object(tagging(), UNIVERSAL, m_utf8_str); } /* |