diff --git a/src/ast/seq_decl_plugin.cpp b/src/ast/seq_decl_plugin.cpp index c9dbc78f8..b592b719a 100644 --- a/src/ast/seq_decl_plugin.cpp +++ b/src/ast/seq_decl_plugin.cpp @@ -213,6 +213,9 @@ std::string zstring::encode() const { else if (ch == '\\') { strm << "\\\\"; } + else if (ch >= 128) { + strm << "\\x" << std::hex << (unsigned)ch << std::dec; + } else { strm << (char)(ch); }