Talk:Reverse a string: Difference between revisions

→‎Extra Credit?: What it entails?
(→‎Extra Credit?: Multibyte included.)
(→‎Extra Credit?: What it entails?)
Line 19:
 
::::Hi, their are two multibyte characters in the example given, as I get the hex values of the characters as being: <code>'61', '73', '20dd', '64', '66'</code>, and <code>'305'</code>. --[[User:Paddy3118|Paddy3118]] 01:50, 29 July 2009 (UTC)
 
===What is needed to get the extra credit===
Oh wait, I had forgot the years of heartache in the Python community before we got this far with Unicode. What you might need to get anywhere with the stretch goal would be:
# Handle UTF-8 character strings
# Handle multibyte unicode strings
# Treat composed, possibly multibyte characters as an entity when reversing.
Anonymous user