java 中从 1252 编码为 Unicode .NET 等效项
我请求将 .NET Web 服务移植到 java。我需要找到这段用 .NET 编写的代码的等效 java 代码:
byte[] b = ... // Some file binary data.
byte[] encoded = System.Text.Encoding.Convert(System.Text.Encoding.GetEncoding(1252), System.Text.Encoding.Unicode, b);
提前致谢!
I have the request to port a .NET web service to java. I need to find the equivalent java code for this piece of code written in .NET:
byte[] b = ... // Some file binary data.
byte[] encoded = System.Text.Encoding.Convert(System.Text.Encoding.GetEncoding(1252), System.Text.Encoding.Unicode, b);
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看支持的编码列表 在java中。 java中的cp1252编码是windows 1252的等效编码。
Have a look on the List of Supported Encoding in java. Cp1252 encoding in java is theequivalent encoding of windows 1252.