Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UTF-8 vs ASCII Text

Tags:

sql

Why does sql database use UTF-8 Encoding? do they both use 8-bit to store a character?

like image 367
user15432 Avatar asked Dec 28 '22 17:12

user15432


1 Answers

UTF-8 is used to support a large range of characters. In UTF-8, up to 4 bytes can be used to represent a single character.

Joel has written an article on this subject that you may want to refer to

The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)

like image 159
segfault Avatar answered Dec 31 '22 05:12

segfault