【问题标题】:TuesPechkin adding  in front of Currency £ SymbolTuesPechkin 在货币 £ 符号前添加 Â
【发布时间】:2017-12-10 02:21:54
【问题描述】:

我一直在使用 Tues Pechkin 进行 html 到 PDF 的转换 但是有一个问题 Tues Pechkin 默认在 £ 符号前添加此符号

示例:- £85,000

var document = new HtmlToPdfDocument
            {
                GlobalSettings =
    {
        ProduceOutline = true,
        DocumentTitle = "TEST",
        PaperSize = PaperKind.A4, // Implicit conversion to PechkinPaperSize
        Margins =
        {
            All = 1.375,
            Unit = Unit.Centimeters
        }
}}

请帮忙 谢谢。

【问题讨论】:

    标签: c# asp.net pdf pdf-generation tuespechkin


    【解决方案1】:

    添加了新的网页设置

    new ObjectSettings { HtmlText = strContent,
             WebSettings = new WebSettings
                            {
                                DefaultEncoding = "UTF-8",
                                LoadImages = true,
                                PrintBackground = true
                            }
                        }
    

    这样就可以接受 UTF-8 字符了,就解决了。谢谢

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-21
      • 2019-02-23
      • 1970-01-01
      相关资源
      最近更新 更多