aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/asn1.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/asn1.cpp b/doc/examples/asn1.cpp
index d3b4a65b9..81d3b4b5d 100644
--- a/doc/examples/asn1.cpp
+++ b/doc/examples/asn1.cpp
@@ -226,7 +226,9 @@ void decode(BER_Decoder& decoder, u32bit level)
ASN1_String str;
data.decode(str);
if(UTF8_TERMINAL)
- emit(type_name(type_tag), level, length, iso2utf(str.iso_8859()));
+ 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());
}