Article “Smart Quote” Problem Resolved

Blog Tools

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:

image

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: image

On the other hand, here’s an example of regular quotes – these are recognizable by VBScript and QTP: image

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.

Previous postStay Updated via Twitter Next postIE+Kaspersky+QTP = Troubles

Post Your Comment

You must be logged in to post a comment.