开发者

What is the encoding of Open XML file

I open it with an editor and shows as UTF8-BOM, but when i get the content using C# and send it to Java web service and receive as UTF-8 encoding, the content chang开发者_运维百科ed.

Where wrong?


When you store something in a .NET string, it is encoded as UTF-16.


There are a lot of ways one can corrupt the encoding.

Get the in-flight message, and review it. Figure out if the encoding is still OK (problem is on Java side), or wrong already (problem is on C# side). Continue to narrow the search field until you see the root cause.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜