Article “Smart Quote” Problem Resolved
Posted by admin - May 4, 2008 0 Views : 539 Receive Updates For This Category
Blog Tools
- Print this page
- Add Comment
- Last Updated on :
Jul 15, 2011
As some of you have noticed (and have reported), if you attempt to copy code from our articles to QTP, you’re often greeted by this error message:
This problem is caused due to the “smart quotes” that are embedded in the articles. Smart quotes (also known as “curly quotes”) offer a more aesthetic version of the regular ACSII quotes, however, they are completely incompatible with any script / programming engine.
Here’s an example of smart quotes – notice how they curl in the relevant direction:
On the other hand, here’s an example of regular quotes – these are recognizable by VBScript and QTP:
Thanks to rajkamalinnit who alerted us to the issue, we’ve activated a workaround which intercepts the articles before they are presented to the user, and transforms all the smart quotes to regular ones.
Update - thanks to Mohamed Ali we’ve also fixed the single smart quote issue.


