UTF-8编码字符的最大字节数是多少? [英] What is the maximum number of bytes for a UTF-8 encoded character?
本文介绍了UTF-8编码字符的最大字节数是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
单个UTF-8编码字符的最大字节数是多少?
What is the maximum number of bytes for a single UTF-8 encoded character?
我将加密以UTF-8编码的字符串,因此需要能够计算出UTF-8编码的字符串的最大字节数。
I'll be encrypting the bytes of a String encoded in UTF-8 and therefore need to be able to work out the maximum number of bytes for a UTF-8 encoded String.
有人可以确认单个UTF-8的最大字节数