200-301 · Question #1549
What is the RFC 4627 default encoding for JSON text?
The correct answer is C. UTF-8. RFC 4627, the standard defining JSON, specifies UTF-8 as the required default character encoding for JSON text.
Question
What is the RFC 4627 default encoding for JSON text?
Options
- AUCS-2
- BGB18030
- CUTF-8
- DHex
How the community answered
(32 responses)- A3% (1)
- B3% (1)
- C88% (28)
- D6% (2)
Why each option
RFC 4627, the standard defining JSON, specifies UTF-8 as the required default character encoding for JSON text.
UCS-2 is a 16-bit fixed-width Unicode encoding, but it is not the default encoding for JSON as specified in RFC 4627.
GB18030 is a Chinese national standard character encoding and is not the default or specified encoding for JSON in RFC 4627.
RFC 4627 mandates that JSON text SHALL be encoded in Unicode, with UTF-8 being the preferred and required default encoding for JSON text producers. This ensures broad compatibility and proper handling of various character sets.
Hexadecimal (Hex) is a numerical base for representing data, not a character encoding scheme itself.
Concept tested: JSON character encoding (RFC 4627)
Source: https://www.rfc-editor.org/rfc/rfc4627
Topics
Community Discussion
No community discussion yet for this question.