You are here: Re: Stripping MS Word code from my forms once and for all. « PHP Programming Language « IT news, forums, messages
Re: Stripping MS Word code from my forms once and for all.

Posted by FFMG on 09/18/07 11:04

Sanders Kaufman;92371 Wrote:
> FFMG wrote:
> > Sanders Kaufman;92237 Wrote:
>
> >> Ah, so. You're having a character set problem.
> >> Rather than have a big old off-topic thread about it here, you
> should
> >> probably take the question to an Office or HTML group.
> >> PHP won't help you much.
> >
> > No I am not, read the question again, carefully this time.
> > Textareas of most browsers will, (wrongly), accept MS Word pasted
> > code.
>
> There is nothing in the HTML specification requiring HTML to reject MS
> Word, Open Office, or any other format. That would be a bug, not a
> feature.
>

Great, one more reason to strip MS Word characters.

Sanders Kaufman;92371 Wrote:
>
>
> > By the time it gets to my server I have to clean it up.
> > My PHP code must handle it.
> >
> > Is that on topic enough for you?
>
> No, and it won't likely be topic(al) enough for most of the other
> folks
> here in the PHP group, either.
>
> While you are indeed trying to process the data through PHP, you
> appear
> to be perfectly capable of programming in PHP, and thus need very
> little
> help with PHP.
>
> Instead, you need to identify the correct character set to use in
> interpreting the Office document, and to apply that character set to
> the
> data retrieved through the HTML FORM element.
>
> That means that the help you need is with Office and HTML, not PHP.

Well, I tend to disagree.
Because I am trying to process data in PHP I think that asking fellow
programmers on the PHP group for input is not as off-topic as you
think.

Is your suggestion to convert to an MS Office charset, (even if the
user did not use MS Word), and then convert it back as needed?
Would stripping the MS chars not be faster/better?

FFMG


--

'webmaster forum' (http://www.httppoint.com) | 'Free Blogs'
(http://www.journalhome.com/) | 'webmaster Directory'
(http://www.webhostshunter.com/)
'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php) | 'Free URL
redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=20318

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация