From 9d151adc7cb19831ea844d98fc13af27b790e369 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 8 Mar 2015 21:23:28 +0000 Subject: Cleanups --- src/cmd/asn1.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cmd/asn1.cpp') diff --git a/src/cmd/asn1.cpp b/src/cmd/asn1.cpp index 8b6400e2a..d02a4cced 100644 --- a/src/cmd/asn1.cpp +++ b/src/cmd/asn1.cpp @@ -287,11 +287,15 @@ void decode(BER_Decoder& decoder, size_t level) ASN1_String str; data.decode(str); if(UTF8_TERMINAL) + { emit(type_name(type_tag), level, length, Charset::transcode(str.iso_8859(), LATIN1_CHARSET, UTF8_CHARSET)); + } else + { emit(type_name(type_tag), level, length, str.iso_8859()); + } } else if(type_tag == UTC_TIME || type_tag == GENERALIZED_TIME) { -- cgit v1.2.3