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 Petr Vileta on 09/27/22 11:57

"Jerry Stuckle" <jstucklex@attglobal.net> wrote in
news:obmdnXcAL5-qLGPZnZ2dnUVZ_qidnZ2d@comcast.com...
> Yes, the browsers convert the characters. But what does the character "â"
> mean in a Word document or a pdf? Is it a left or right quote? A bullet?
> Something else?
>
> That's what he needs to know, not the utf-8 codes.
>
If you see "â" in Word or Acrobat (reader) then this is a character. If you
see quote or bullet then this is a quote or bullet. Value of character code
is not important at this moment. IMHO user must cut text in Word or Acrobat
and paste in browser and at this moment all clipboard content is converted
to UTF-8 or UTF-16 as you have defined in html (php) page.
I have many pages where users paste text into <texarea> from Word, Acrobat,
Corel and more applications and I have no problem with converting characters
because my pages are defined as unicode (UTF-16) and my database too. For my
pages is irrelevant if user is Czech, English, German, Japanese, Russian or
Martian :-)
My recommendations is: if you have problem with charsets, use unicode
(UTF-16) at all.
--

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)

 

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

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