首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Java String UTF8和String8之间的区别?

Java String UTF8和String8之间的区别?
EN

Stack Overflow用户
提问于 2014-04-02 03:16:37
回答 1查看 860关注 0票数 1

在Java中,String8(C++)和字符串有什么区别?

EN

回答 1

Stack Overflow用户

发布于 2014-04-02 04:39:28

据我所知:

代码语言:javascript
复制
 Property                    java.lang.String    android::String8
 ================================================================
 language                    Java                C++
 Unicode                     yes                 yes
 char width                  16                  8
 encoding                    UTF-16              UTF-8
 mutability                  immutable           mutable
 bunch of file path methods  no                  yes
 attitude to Darwin          indifferent         annoyed (line 47)

它们都是Unicode字符串类型;相似之处似乎到此为止。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22794924

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档