By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,719 Members | 1,220 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,719 IT Pros & Developers. It's quick & easy.

Copying from MS Word

P: n/a
Hi All

I've written a little CMS with a WYSIWYG editor from
www.interactivetools.com. Everything works ok until they try and copy text
from MS Word. When they do this, apostrophes change to a capital A with a
accent above it. It looks ok in the text box but the wrong character gets
put in the database. Then when you go back in and edit the page, the A
character is there and can be replaced.

If they replace the faulty character then it all works fine but it's just a
pain for the end user.

Can anyone throw any light on this?

Cheers
Andy

Jul 17 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Andy Jacobs <an**@redcatmedia.net> wrote in message
news:<BDA2918B.1DFE%an**@redcatmedia.net>...

I've written a little CMS with a WYSIWYG editor from
www.interactivetools.com. Everything works ok until they try
and copy text from MS Word. When they do this, apostrophes
change to a capital A with a accent above it.


It's an encoding issue. Word has a feature called "smart quotes",
which replaces (in a context-sensitive fashion) both single and
double quotes with either opening or closing quote. When this
gets converted from Word's internal encoding (which, if I remember
correctly, is UTF-16) into something less sophisticated (say,
Latin-1), the closing single quote is replaced by accented capital
A because it has the same number in the symbol table.

Cheers,
NC
Jul 17 '05 #2

P: n/a
Nel
"Nikolai Chuvakhin" <nc@iname.com> wrote in message
news:32**************************@posting.google.c om...
Andy Jacobs <an**@redcatmedia.net> wrote in message
news:<BDA2918B.1DFE%an**@redcatmedia.net>...

I've written a little CMS with a WYSIWYG editor from
www.interactivetools.com. Everything works ok until they try
and copy text from MS Word. When they do this, apostrophes
change to a capital A with a accent above it.


It's an encoding issue. Word has a feature called "smart quotes",
which replaces (in a context-sensitive fashion) both single and
double quotes with either opening or closing quote. When this
gets converted from Word's internal encoding (which, if I remember
correctly, is UTF-16) into something less sophisticated (say,
Latin-1), the closing single quote is replaced by accented capital
A because it has the same number in the symbol table.

Cheers,
NC


On a related issue - I use the same editor on some sites and would like a
user to be able to copy and paste from Word, but Word always pastes a load
of CSS junk behind the text.

Is there a way to just copy the text?

Thanks Nel.
Jul 17 '05 #3

P: n/a
On 25/10/04 7:02 pm, in article
41***********************@ptn-nntp-reader03.plus.net, "Nel"
<ne***@ne14.co.NOSPAMuk> wrote:
"Nikolai Chuvakhin" <nc@iname.com> wrote in message
news:32**************************@posting.google.c om...
Andy Jacobs <an**@redcatmedia.net> wrote in message
news:<BDA2918B.1DFE%an**@redcatmedia.net>...

I've written a little CMS with a WYSIWYG editor from
www.interactivetools.com. Everything works ok until they try
and copy text from MS Word. When they do this, apostrophes
change to a capital A with a accent above it.


It's an encoding issue. Word has a feature called "smart quotes",
which replaces (in a context-sensitive fashion) both single and
double quotes with either opening or closing quote. When this
gets converted from Word's internal encoding (which, if I remember
correctly, is UTF-16) into something less sophisticated (say,
Latin-1), the closing single quote is replaced by accented capital
A because it has the same number in the symbol table.

Cheers,
NC


On a related issue - I use the same editor on some sites and would like a
user to be able to copy and paste from Word, but Word always pastes a load
of CSS junk behind the text.

Is there a way to just copy the text?


There is a HTML Tidy plugin for the script but I tried it and it tidied
EVERYTHING. I never got to the bottom of the cause though.

Andy

Jul 17 '05 #4

P: n/a
On 25/10/04 5:14 pm, in article
32**************************@posting.google.com, "Nikolai Chuvakhin"
<nc@iname.com> wrote:
Andy Jacobs <an**@redcatmedia.net> wrote in message
news:<BDA2918B.1DFE%an**@redcatmedia.net>...

I've written a little CMS with a WYSIWYG editor from
www.interactivetools.com. Everything works ok until they try
and copy text from MS Word. When they do this, apostrophes
change to a capital A with a accent above it.


It's an encoding issue. Word has a feature called "smart quotes",
which replaces (in a context-sensitive fashion) both single and
double quotes with either opening or closing quote. When this
gets converted from Word's internal encoding (which, if I remember
correctly, is UTF-16) into something less sophisticated (say,
Latin-1), the closing single quote is replaced by accented capital
A because it has the same number in the symbol table.


Thanks for that. I guess I can justify chucking that one straight back at
the customer then!

Cheers

Andy

Jul 17 '05 #5

P: n/a
Nel

"Andy Jacobs" <an**@redcatmedia.net> wrote in message
news:BDA30E4F.2670%an**@redcatmedia.net...
On 25/10/04 7:02 pm, in article
41***********************@ptn-nntp-reader03.plus.net, "Nel"
<ne***@ne14.co.NOSPAMuk> wrote:
"Nikolai Chuvakhin" <nc@iname.com> wrote in message
news:32**************************@posting.google.c om...
Andy Jacobs <an**@redcatmedia.net> wrote in message
news:<BDA2918B.1DFE%an**@redcatmedia.net>...

I've written a little CMS with a WYSIWYG editor from
www.interactivetools.com. Everything works ok until they try
and copy text from MS Word. When they do this, apostrophes
change to a capital A with a accent above it.

It's an encoding issue. Word has a feature called "smart quotes",
which replaces (in a context-sensitive fashion) both single and
double quotes with either opening or closing quote. When this
gets converted from Word's internal encoding (which, if I remember
correctly, is UTF-16) into something less sophisticated (say,
Latin-1), the closing single quote is replaced by accented capital
A because it has the same number in the symbol table.

Cheers,
NC


On a related issue - I use the same editor on some sites and would like a
user to be able to copy and paste from Word, but Word always pastes a
load
of CSS junk behind the text.

Is there a way to just copy the text?


There is a HTML Tidy plugin for the script but I tried it and it tidied
EVERYTHING. I never got to the bottom of the cause though.

Andy

I have searched the www.interactivetools.com web site for the HTML Tidy
plugin and can't find it.

Can someone help me out please?

Nel
Jul 17 '05 #6

P: n/a
In article <41***********************@ptn-nntp-reader03.plus.net>,
"Nel" <ne***@ne14.co.NOSPAMuk> wrote:

:I have searched the www.interactivetools.com web site for the HTML Tidy
:plugin and can't find it.
:
:Can someone help me out please?
:

http://ca.php.net/manual/en/ref.tidy.php

I think this is what you want. It has a link:

http://tidy.sourceforge.net/

for the required libtidy, and also points out:

"If PEAR is available on your *nix-like system you can use the pear
installer to install the tidy extension, by the following command:
pear -v install tidy."

It also describes a cool bunch of functions (er, methods) to use.
--
Looks like more of Texas to me ...
-- from The Wild Bunch
Jul 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.