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 10/16/93 11:57

Petr Vileta wrote:
> "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.

The problem is it is not an "â" in Word or a pdf. It could be the
internal code for a left or right double quote, a bullet, or whatever.
The browser cannot convert these characters - it has no idea what an "â"
really is. All it knows is the UTF-8 or whatever code is.

Of course Word knows what it means, and if you post it into another Word
document you will get the right information. But paste it into any
non-Word application and you get "â".

Therein lies the problem.

--
==================
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

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