http://www.perlmonks.org?node_id=881491


in reply to Re^5: How to reverse a (Unicode) string
in thread How to reverse a (Unicode) string

In that case, we're back to the original question. Are there any encodings aren't "Unicode encodings"?

(Strictly speaking, the mapping isn't 1-to-1. U+2660 can't be encoded in iso-8859-1. You could also say that both U+00E9 and U+0065 U+0301 encode to E9 in iso-8859-1, although Encode's encode doesn't handle that.)

Replies are listed 'Best First'.
Re^7: How to reverse a (Unicode) string
by JavaFan (Canon) on Jan 10, 2011 at 16:17 UTC
    Strictly speaking, the mapping isn't 1-to-1. U+2660 can't be encoded in iso-8859-1
    The claim is that iso-8859-1 maps 1-to-1 to Unicode, not that Unicode maps 1-to-1 to iso-8859-1. A 1-to-1 mapping is also known as an injection. The claim wasn't that it's a bijection (aka 1-to-1 correspondence).