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 Wim Cossement on 10/06/73 11:57

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

 

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

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