diff options
| author | Gordon Sim <gsim@apache.org> | 2014-06-13 11:50:56 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2014-06-13 11:50:56 +0000 |
| commit | 2f88ccf3c5011d2c79de5998f5a98aca7e415142 (patch) | |
| tree | d391c1714656ee3fce5a59a686fb204220b587f0 /qpid/cpp/src | |
| parent | 80e5c44df15aa516e4c609f8dc3ec7441e54cca8 (diff) | |
| download | qpid-python-2f88ccf3c5011d2c79de5998f5a98aca7e415142.tar.gz | |
QPID-5814: default to utf8 in Variant::parse()
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1602390 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/types/Variant.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/types/Variant.cpp b/qpid/cpp/src/qpid/types/Variant.cpp index 292bb5ef09..f9820a82dd 100644 --- a/qpid/cpp/src/qpid/types/Variant.cpp +++ b/qpid/cpp/src/qpid/types/Variant.cpp @@ -20,6 +20,7 @@ */ #include "qpid/types/Variant.h" #include "qpid/log/Statement.h" +#include "encodings.h" #include <boost/format.hpp> #include <boost/lexical_cast.hpp> #include <boost/algorithm/string.hpp> @@ -813,6 +814,7 @@ Variant& Variant::parse(const std::string& s) try { return operator=(asBool()); } catch (const InvalidConversion&) {} + setEncoding(qpid::types::encodings::UTF8); return *this; } |
