quotes get coverted

  • Thread starter Thread starter Don
  • Start date Start date
D

Don

Single and double quotes copy/pasted from Word into a
textarea form field in IE 6 get converted to boxes.

Children’s Summer Camps

should be

Children's Summer Camps

Any ideas?

If you type the quotes into the HTML form directly, the
quotes get rendered correctly on the web page. The problem
occurs when pasting. I need a fix so that pasting does
work.

The web site was hosted on Windows 2000 Server and was
recently moved to a windows 2003 server. The form data in
entered into SQL Server 2000.

Thank you for your help.

Don
 
I need a fix so that pasting does work.

You will have to use the same characterset in both applications
or at least use charactersets in both applications which define that
character. Note: Decimal 146 = Hex 92

Use CharMap to see what is probably happening.
E.g. in Windows Western Hex 92 is Right Single Quotation Mark
but in Unicode Hex 92 doesn't exist. In fact, the Windows Western chart
helps you find that character in Unicode by showing you it's also U+2019.

Notice that the same character can be generated by pressing Alt-Num0146.
Perhaps you could generate the appropriate Unicode character
after the paste that way.


HTH

Robert Aldwinckle
 
Don said:
Single and double quotes copy/pasted from Word into a
textarea form field in IE 6 get converted to boxes.

Children’s Summer Camps

should be

Children's Summer Camps

Any ideas?

If you type the quotes into the HTML form directly, the
quotes get rendered correctly on the web page. The problem
occurs when pasting. I need a fix so that pasting does
work.

The web site was hosted on Windows 2000 Server and was
recently moved to a windows 2003 server. The form data in
entered into SQL Server 2000.

Thank you for your help.

Don

Yes. This is because of Word's Smart Quotes. Copy and paste into Notepad
first.

--
Frank Saunders, MS-MVP, IE/OE
Please respond in Newsgroup. Do not send email
http://www.fjsmjs.com
Protect your PC
http://www.microsoft.com/security/protect/
 
This only causes serious misbehaviour of IE "HTMLizing" the entered
non-ISO-8859-1 characters from Windows-Cp1252 into notation, but of
cause you can avoid the problems by not using this type of characters. But
by the way this prevents you also from entering EURO signs and the like too.
(Users *do* drag content from Word where they previously compiled the text.)

Maybe a better solution is to explicitly declare all and every page
containing forms to use and send back utf-8 instead of <default> or
iso-8859-1 or the like.

Look at
http://ppewww.ph.gla.ac.uk/~flavell/charset/form-i18n.html
for further discutssion of this topic.

--cg
Yes. This is because of Word's Smart Quotes. Copy and paste into
Notepad first.

--
--
Dipl.-Inform. Christian Gosch
Systems Development
inovex GmbH
Karlsruher Straße 71
D-75179 Pforzheim
Tel: +49-(0)7231-3191-85
Fax: +49-(0)7231-3191-91
mailto:[email protected]
http://www.inovex.de
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top