I suspect the best approach here is to let the user enter their name, then just store and use the representation they provide, doing no processing on it at all. Stuff like this there aren’t going to be any rules you can follow that will get it right for most non-clear cut cases. If you don’t have the original representation, all upper case seems like the best compromise.
Will. > On 10 Aug 2016, at 11:42, Ian Moss <[email protected]> wrote: > > Hi NWRUG, > > Quick question on internationalisation. Well, converting of name strings into > a useable format. > I working on the MEP Connect project at the moment. > > I've a bunch of names, where the surname is capitalized. No problem I > thought, I'll downcase.titleize the string. > However, the output is a little bit of a mess, with some characters remaining > uppercase - perhaps this is why the EU left them all uppercase? Who knows. > > Here's the output of a few examples. Perhaps you have better approaches? > (Cheers in advance, Ian.) > > Pál CsÁky > Ulrike MÜller > Jadwiga WiŚniewska > Malin BjÖrk > Francesc GambÚs > > P.s. the project welcomes help and is on github at: > https://github.com/alterisian/mep_contact/ and discussion at: > https://www.facebook.com/groups/projectremain/permalink/842346405899747/ > -- > Ian Moss > CTO-level consultancy services. Meet for a coffee? > https://calendly.com/oceanician > http://twitter.com/oceanician // http://www.linkedin.com/in/alteris // > +(44)7790450877 > > > -- > You received this message because you are subscribed to the Google Groups > "North West Ruby User Group (NWRUG)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/nwrug-members. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "North West Ruby User Group (NWRUG)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send an email to [email protected]. Visit this group at https://groups.google.com/group/nwrug-members. For more options, visit https://groups.google.com/d/optout.
