如何在byte []中识别charset编码? [英] How to identify the charset encoding in a byte[]?
本文介绍了如何在byte []中识别charset编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的webservice接收文件为字节数组,有两种类型的编码,UTF-8和iso-8859-1。
我有如何解码其中一种编码格式的bytearray,如何根据接收到的字节数组知道存储文件的编码格式?
提前谢谢。
Kishor
Hi,
My webservice receives the file as byte array and there are two types of encodings present, UTF-8 and iso-8859-1.
I have to decode the bytearray in one of the encoding formats, how I can know the stored file's encoding format based on received byte array?
Thanks in advance.
Kishor
推荐答案
使用UDE解决
以下链接: UDE
参见这里
这篇关于如何在byte []中识别charset编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文