Alias for UTF-7 charset.
This commit is contained in:
parent
ac03342507
commit
4286a80d9d
@ -45,6 +45,9 @@ charset::charset()
|
|||||||
charset::charset(const string& name)
|
charset::charset(const string& name)
|
||||||
: m_name(name)
|
: m_name(name)
|
||||||
{
|
{
|
||||||
|
// If we receive this rfc-1642 valid MIME charset, convert it to something usefull for iconv
|
||||||
|
if (utility::stringUtils::isStringEqualNoCase(m_name, "unicode-1-1-utf-7"))
|
||||||
|
m_name = "utf-7";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -60,6 +63,10 @@ void charset::parse(const string& buffer, const string::size_type position,
|
|||||||
m_name = utility::stringUtils::trim
|
m_name = utility::stringUtils::trim
|
||||||
(string(buffer.begin() + position, buffer.begin() + end));
|
(string(buffer.begin() + position, buffer.begin() + end));
|
||||||
|
|
||||||
|
// If we parsed this rfc-1642 valid MIME charset, convert it to something usefull for iconv
|
||||||
|
if (utility::stringUtils::isStringEqualNoCase(m_name, "unicode-1-1-utf-7"))
|
||||||
|
m_name = "utf-7";
|
||||||
|
|
||||||
setParsedBounds(position, end);
|
setParsedBounds(position, end);
|
||||||
|
|
||||||
if (newPosition)
|
if (newPosition)
|
||||||
|
Loading…
Reference in New Issue
Block a user