Questions tagged by "Encoding"


0
 bounty
0
answers
getBytes() in Java returns different byte array than getBytes () to c #
10 years ago • lampego1@qrid
Hi everyone. I runs this Java code: String s = "73b53b86-eee3-44d2-82e3-be94d93deb5b"; byte[] result = s.getBytes(Charset.forName("UTF-8")); Length of the result var: 23 And runs this C# code: string s = "73b53b86-eee3-44d2-82e3-be94d93deb5b"; byte[] result = Encoding.UTF8.GetBytes(s); Length of the result var: 36 I can not understand what the problem is. Thanks
1
 bounty
0
answers
Android. WebView and loadData
10 years ago • alexander.kojemyakin
It's possible to use following method for content's setting of a web-view loadData(String data, String mimeType, String encoding) How to handle the problem with unknown encoding of html data?! Is there a list of encodings?! I know from my college that in my case html comes from DB and is encoded with latin-1. I try to set encoding parameter to latin-1, to ISO-8859-1 / iso-8859-1, but still have problem with displaying of special signs like ä
1 from 2