Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^5: How to reverse a (Unicode) stringby JavaFan (Canon) |
on Jan 10, 2011 at 09:17 UTC ( [id://881423]=note: print w/replies, xml ) | Need Help?? |
You seem to be confusing "1-to-1" mapping, and "identity function". While the identity function is a trivial "1-to-1" mapping, it's not true every "1-to-1" mapping is the identity function.
However, even side-stepping that, Juerd doesn't mean byte values map 1-to-1. The mapping is after decoding. For instance, the UTF-8 byte sequence 0x82 0xC3 decodes to C2. Which indeed does map to the C2 Unicode code point.
In Section
Tutorials
|
|