What is the default character encoding of the Android system? Which Charset
is used?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Update as of 2017: The link once again mentions UTF-8 as the default for the Android plattform.
Update as of 2016: The link I provide no longer mentions UTF-8. Still, the default charset can still be found on a device with the mentioned API call.
Old answer: The default character encoding for Android is UTF-8, as specified by the JavaDoc of the Charset.defaultCharset()
method. It can be validated by calling that same method.