News for hackers. Stuff that matters.
Re:The Absolute Minimum Every Software Developer Must Know A... by nodemaker on Wednesday January 11, 2012 @01:35AM (#3450703)
I dont get this actually.

Say a UTF8 string is ae 31 c1 12.

Now how do we decide whether it has the characters "31","c1","ae","12" or the characters are "ae 31" and "c1 12" or even "ae","31 c1" and "12".??

EDIT: Never mind!..found my answer here http://stackoverflow.com/questions/1543613/how-does-utf-8-va...

Re:The Absolute Minimum Every Software Developer Must Know A... by pjscott on Wednesday January 11, 2012 @03:05PM (#3453406)
The tldr is that UTF-8 is a prefix code: no valid character is a prefix of any other.

http://en.wikipedia.org/wiki/Prefix_code