Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down at the end of May, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Christopher Baum <baum@bc.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: re: Seeing Double - issues with quotation marks |

Date |
Fri, 26 Feb 2010 17:14:38 -0500 |

<> Ben said I made the error of cutting and pasting text from Microsoft into the Do-file Editor of Stata MP 9.2 (Stata 11 should arrive any day now). Now, whenever I type a double quotation mark, the symbol is no longer the apl double quotation mark (HTML coding entity "). Instead, it is a common quotation mark (&rdquo). For examples, see http://www.intuitive.com/coolweb/entities.html The common quotation version is not recognized by Stata, and you get the ironic error: '"A"' found where almost anything else expected Two simple fixes are to restart stata (which reverts to the APL) or copy an old apl quotation mark and pasted when you need a quotation. I found that if I simply open another editor, the new editor still uses the common quotation marks (&rdquo). Has anyone else had this problem and might Stata fix it in the next release? I don't think it's Stata's job to "fix this". As often mentioned on this list, a TEXT EDITOR should be used to develop do-files outside of the do-file editor: not Microsoft Word! This problem occurs in many contexts -- if you copy and paste from Word to a text file, you get curly quotes (as you note), curly apostrophes, em-dashes that are not recognized as dashes, etc. which will, e.g., show up as problems in HTML. The way to avoid these problems is to stay away from Word if you're interested in writing or editing a text file. It is cumbersome to use Word in that context anyway, as its native format is binary, not ASCII text. See SSC item 'texteditors' for guidance. Kit Baum | Boston College Economics and DIW Berlin | http://ideas.repec.org/e/pba1.html An Introduction to Stata Programming | http://www.stata-press.com/books/isp.html An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**st: RE: re: Seeing Double - issues with quotation marks***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**Re: st: RE: percent symbols in catplot** - Next by Date:
**RE: st: RE: percent symbols in catplot** - Previous by thread:
**st: percent symbols in catplot** - Next by thread:
**st: RE: re: Seeing Double - issues with quotation marks** - Index(es):