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.
精彩评论