Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any characters that can be encoded in UTF-16 but not UTF-8?

Tags:

utf-8

utf-16

Are there any characters that can be encoded in UTF-16 but not UTF-8

like image 294
Paul Taylor Avatar asked Sep 08 '25 15:09

Paul Taylor


2 Answers

No.

UTF-* are encodings that can encode the full range of Unicode characters.
The differences between the encodings are how many bytes each character uses.

like image 200
SLaks Avatar answered Sep 10 '25 08:09

SLaks


The only difference is the length of result and compatibility (utf-8 may easily be integrated with old ASCII-based software and utf-16 - with Win32 Unicode application). Both UTF-8 and UTF-16 represent short encoding of Unicode.

like image 21
i486 Avatar answered Sep 10 '25 06:09

i486