Hacker News new | ask | show | jobs
by aidenn0 1600 days ago
> The answer is: it depends. There isn't a canonical way to reverse a string, at least that I'm aware of.

Unicode defines grapheme clusters[1] that represent "user-perceived characters" separating a string into those and reversing seems like a pretty good way to go about it.

1: http://www.unicode.org/reports/tr29/