Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^6: How to reverse a (Unicode) string

by ikegami (Patriarch)
on Jan 10, 2011 at 15:50 UTC ( [id://881491]=note: print w/replies, xml ) Need Help??


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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://881491]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-24 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found