diff --git a/src/encoding.cpp b/src/encoding.cpp index 89cd7e8c..3ab9194f 100644 --- a/src/encoding.cpp +++ b/src/encoding.cpp @@ -57,6 +57,9 @@ void encoding::parse(const string& buffer, const string::size_type position, (utility::stringUtils::unquote(utility::stringUtils::trim (string(buffer.begin() + position, buffer.begin() + end))))); + if (m_name.empty()) + m_name = encodingTypes::SEVEN_BIT; // assume default "7-bit" + setParsedBounds(position, end); if (newPosition)