|
Posted by Jerry Stuckle on 12/16/43 11:57
Wim Cossement wrote:
> Hi again,
>
> I must say I've tried all the suggested options but I still can't do a
> proper upload.
>
> There is one textarea where users must put in text about their subject
> (more or less 2 formatted pages in a PFD/DOC document), so most (not to
> say all) of them cut 'n' paste it from Acrobat/Word/OpenOffce into their
> browser.
>
> Most of them contain double quotes that are not escaped by addslashes or
> htmlspecialchars , I've copied a few myself: "bla" "bla" "bla"
>
> If I add an entry by hand in phpMyAdmin for instance and one field
> contains these characters they are stored and displayed OK.
> When I store the resulting page and look at it in vi those quoted bla's
> are displayed as â~@~\blaâ~@~]
>
> How do I get rid of those, since Thunderbird wants to convert the
> message to UTF-8?
>
> Is there a way to limit or convert the encoding used in a textarea?
> Or is this more HTML related?
>
> Regards,
>
> Wimmy
Well, what Thunderbird does is completely client side and has nothing to
do with PHP. What charset do you have defined for the page?
And if they care cutting and pasting from a Word document or a PDF,
chances are the document itself has the special characters. For
instance, Word can use different characters for left and right double
quotes, depending on the version and releases.
Nothing in PHP or MySQL would handle such characters; you'll have to
handle them yourself, i.e. with str_replace().
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|