Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats the difference between UTF-8 and utf8?

difference utf-8 utf8
0
Posted

Whats the difference between UTF-8 and utf8?

0

UTF-8 is the official standard. utf8 is Perl’s way of being liberal in what it accepts. If you have to communicate with things that aren’t so liberal, you may want to consider using UTF-8. If you have to communicate with things that are too liberal, you may have to use utf8. The full explanation is in Encode. UTF-8 is internally known as utf-8-strict. The tutorial uses UTF-8 consistently, even where utf8 is actually used internally, because the distinction can be hard to make, and is mostly irrelevant. For example, utf8 can be used for code points that don’t exist in Unicode, like 9999999, but if you encode that to UTF-8, you get a substitution character (by default; see “Handling Malformed Data” in Encode for more ways of dealing with this.) Okay, if you insist: the “internal format” is utf8, not UTF-8.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123