UTF8 or UTF-8? [closed]

2019-02-03 23:30发布

Which of the two is correct terminology?

5条回答
疯言疯语
2楼-- · 2019-02-04 00:10

That depends on where you use it...

The name of the encoding is UTF-8.

A dash is not valid to use everywhere, so for example in .NET framework the property of the System.Text.Encoding class that returns an instance of the UTF8Encoding class that handles the UTF-8 encoding is named UTF8.

查看更多
爷、活的狠高调
3楼-- · 2019-02-04 00:18

It's definitely UTF-8. UTF8 is only used commonly in places where a dash is not allowed (programming language indentifiers) or because people are too lazy.

查看更多
相关推荐>>
4楼-- · 2019-02-04 00:19

I believe according to the Unicode Consortium, it's UTF-8.

查看更多
Luminary・发光体
5楼-- · 2019-02-04 00:30

Also UTF-8 (great and thorough explanation of UTF-8)

查看更多
一纸荒年 Trace。
6楼-- · 2019-02-04 00:37

Following the RFC standard the answer is UTF-8

http://www.ietf.org/rfc/rfc3629

查看更多
登录 后发表回答