|
Posted by comp.lang.php on 03/21/06 17:53
Roger Dodger wrote:
> It is a huge task to decode Word from it's proprietary format to plain
> text or regular old HTML. All online resume's I've submitted in a form
> have required me to paste in either a plain text or rich text format.
> That would be the easiest approach. User just has to Save as... from
> the Word File menu.
>
>
Right. I know looking forward that I can give the person the option to
upload their Word doc or PDF (a security issue in and of itself -
yikes!) alongside cutting & pasting, but there are two unanswered
questions:
1) What about those already in the database as text field values? What
do I do about those?
2) What is to stop the "challenged among us" from cutting & pasting a
Word doc even though they have the option to upload, aside from telling
them to do so?
Phil
> comp.lang.php wrote:
> > fiziwig wrote:
> > > By "funky characters" I assume you mean the letter 'e' with the cute
> > > little French decoration on top. Try this:
> > >
> > > $new_string=str_replace('é','e',$old_string);
> > >
> > > To replace the decorated e's with plain vanilla e's.
> > >
> > > (The first e is the decorated on, in case it doesn't show up in your
> > > newsreader. For windows users that's entered by holding down the alt
> > > ket and typing 0233 on the num pad.)
> > >
> > > You might also need to do it for the upper case 'E' inc ase people
> > > write "RESUMÉ" in caps.
> > >
> > > --gary
> >
> > No that's not the case. What is happening is when someone copies and
> > pastes a Word document "as-is", like with its own proprietary spacing,
> > fonts, etc., this is what you'll see on an HTML page:
> >
> > University of North Carolina
> > ����¯�¿�½������¢������¯������¿������½������¯������¿������½
> > Charlotte
> >
> > Phil
[Back to original message]
|