Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by ikegami (Pope)
on Jan 10, 2011 at 15:50 UTC ( #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.)


Comment on Re^6: How to reverse a (Unicode) string
Download Code
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
Node Status?
node history
Node Type: note [id://881491]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2015-07-03 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls