Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1213

Difference between UTF-8 and UTF-16?

$
0
0

Difference between UTF-8 and UTF-16?Why do we need these?

MessageDigest md = MessageDigest.getInstance("SHA-256");String text = "This is some text";md.update(text.getBytes("UTF-8")); // Change this to "UTF-16" if neededbyte[] digest = md.digest();

Viewing all articles
Browse latest Browse all 1213

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>