You are here: Re: How to upload form data containing special characters correctly? « PHP Programming Language « IT news, forums, messages
Re: How to upload form data containing special characters correctly?

Posted by Jerry Stuckle on 12/16/99 11:57

Wim Cossement wrote:
> Jerry Stuckle wrote:
>
>> Well, what Thunderbird does is completely client side and has nothing
>> to do with PHP. What charset do you have defined for the page?
>
>
> The header contains <meta http-equiv="content-type"
> content="application/xhtml+xml; charset=utf-8" />, so it should be UTF-8
>
>> 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.
>
>
> Well, when I save the text with those weird things in a textfile with
> UTF-8 encoding they are still there when I open it, so it must be a
> character that exists in this character set.
> But how do I determine which one it is specificly?
>
> I've put an example here in case someone knows how to do it:
> http://ultr23.vub.ac.be/~wcosseme/someFile.txt
>
>> Nothing in PHP or MySQL would handle such characters; you'll have to
>> handle them yourself, i.e. with str_replace().
>
>
> Then I might be able to replace it, who knows...
>
> Many cheers to the one that can do it!
>
> Wimmy

Hi, Wimmy,

That's going to be difficult. They're valid characters in utf-8, but
who knows that they mean in Word or a pdf. They could be bullets,
left/right double quotes or a number of other special characters.

I don't have a conversion table available - there probably is one
somewhere on the net (maybe someone else can give some hints). I did
try a couple of google searches and found some editors which accept word
documents, but that's all. I didn't spend a lot of time on it, though.

Otherwise, you might get them to email you the word doc they're using
and you can try to figure out what each character means and replace it.
It might take a few tries to get all the characters, but it shouldn't
be that hard.

Sorry I can't be of more help.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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