如何在XML数据集中传递度数符号 [英] How to pass degree symbol in XML dataset

查看:115
本文介绍了如何在XML数据集中传递度数符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

'<NewDataSet>
  <AcsPurDet>
    <APId>0</APId>
    <ExNo>LST/0430-10</ExNo>
    <APCId>25185</APCId>
    <APCNo>85</APCNo>
    <ACSId>16071</ACSId>
    <AcsType>Packing Material</AcsType>
    <AcsName>Label (Cotton 40°-1/2x2 1/4")</AcsName>
    <Color>NA</Color>
    <PUnit>Pcs</PUnit>
    <CUnit>Pcs</CUnit>
    <ConvFactor>1</ConvFactor>
    <BarCode>NA</BarCode>
    <PluNo>D-ASST</PluNo>
    <OrdQty>8874</OrdQty>
    <Qty>8874</Qty>
    <ExcessQty>0</ExcessQty>
    <Rate>0.023</Rate>
    <APCSlno>2</APCSlno>
    <ExpOrdId>6771</ExpOrdId>
    <PrevQty>8874</PrevQty>
    <BalQty>8874</BalQty>
  </AcsPurDet>
</NewDataSet>'




我无法将其存储在db中
请帮助




I can not able to store this in db
Please help

推荐答案

在这里,请阅读
Here, have a read at the similar discussion[^] with possible resolution.


1)将UTF-8与序言一起使用<?xml version="1.0" encoding="UTF-8"?>并按原样使用您的符号.作为一种变体,请结合使用其他任何带有适当XML序言的Unicode UTF.确保以序言中要求的相同格式保存XML文件. :-)您不必使用BOM表字符.

2)将字符实体用于度数符号:&#176;.

—SA
1) Use UTF-8 with the prolog <?xml version="1.0" encoding="UTF-8"?> and use your symbol as is. As a variant, use any other Unicode UTF with appropriate XML prolog. Make sure you save your XML file in the same encoding with is claimed in the prolog. :-) You don''t have to use BOM character.

2) Use character entity for a degree sign: &#176;.

—SA


这篇关于如何在XML数据集中传递度数符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆