【问题标题】:boost::spirit::xml::encode for wide stringboost::spirit::xml::encode 宽字符串
【发布时间】:2013-12-30 21:48:59
【问题描述】:

我目前正在使用boost::spirit::xml::encode 函数将给定的std::string 编码为xml。但是这个函数对std::wstring不起作用。

是否有任何等价物也适用于宽字符串?

【问题讨论】:

标签: c++ xml boost encoding wstring


【解决方案1】:

它适用于宽字符串,因为所有 XML 重要的宽字符都映射到单字节字符。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-04
    • 2015-11-24
    • 2017-08-10
    相关资源
    最近更新 更多