initcap problem with apostrophes
434575Dec 12 2004 — edited Dec 13 2004I have a database of placenames in New Zealand containing mixed case entries such as Rotorua, Hawke's Bay and AUCKLAND. I want to rerieve these entries and present them in a web app in a consistent way. The initcap method works for most entries e.g Rotorua (obviously doesn't need to be changed) and AUCKLAND are retrieved as Rotorua and Auckland, but Hawke's Bay becomes Hawke'S Bay because initcap sees the apostophe as a word delimiter.
Does any one know a handy workaround to this problem so that i can retrieve correctly formatted placenames without needing to process the text in my app.