Removing / replacing unwanted characters in data
Moderator: General Moderators
Removing / replacing unwanted characters in data
I've got a client who insists on entering data into their db from word and other places where there are all kinds of funky characters that my website is not properly handling. I do not have access to the server site code, so I cannot really do any kind of fancy character encoding voodoo. I need to be able to correct all of the funky characters before they go into the database. Is there an application or a library or something I can use to filter out or replace all that garbage? Things like Word's special apostrophe character and emdashes and that sort of thing? Thanks.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Last I saw they had specific binary data for each of these characters. .. str_replace() should be able to do it quite easily.