Possible Duplicate:
Capitalization of Person names in programming
I've noticed that people who are registering on my site are exceptionally lazy in the way that they don't even bother capitalizing their own names.
My site is a business oriented one, so there's no "freedom of self-expression" argument here.
First name capitalization is pretty easy as I can't think of a single instance where a Western first name would not start with a capital letter. I could be wrong.
But capitalizing the last name gets more difficult, with names like
O'Brien
O´Flaherty
de Wit
McKenzie
Auditore da Firenze
de los Remedios de Escalada
Virta-Jokela
What would be a good solution to proper automatic capitalization of surnames in PHP that would get it right some 95% of the time? I am aware of this.