Chr() value of smart quotes

I want to search for smart single quote and smart double quote by chr() value / QTP code. The chr() code of straight Double Quotes is chr(34) and chr() code of straight single quote is chr(39). What should I do to find smart single quote and smart double quote and replace it with another value.

Please tidy up your question. It is extremely unpleasant to try and read it.
If you’re looking for the “code” marker, use 3 tildes ~~~ at start of line, optionally followed by programming language name. The “code” area (which remains preformatted, i.e. spaces are not merged) extends up to the next ~~~ marker.

‘ #8216 left single quotation mark
’ #8217 right single quotation mark
‚ #8218 single low-9 quotation mark
‛ #8219 single high-reversed-9 quotation mark
“ #8220 left double quotation mark
” #8221 right double quotation mark
„ #8222 double low-9 quotation mark
‟ #8223 double high-reversed-9 quotation mark

in search an replace you may use their hexadecimal Representations from \u2018 to \u201f

1 Like

Call menu:Insert>Special Characters…
Type quot into the search box.
The context menu offers to insert into the document at current cursor position, copy to clipboard or add to the collection of favourites. And you see the decimal and hex id of a character.

2 Likes

Note though that Special Characters is bound to availability of glyphs in the currently selected font, so make sure that’s a fairly complete one like Liberation Serif or better FreeSerif that even includes the ornament quotation characters.

Or download unum from unum - Interconvert numbers, Unicode, and HTML/XHTML characters and invoke
unum.pl n=quotation
(weed out CJK unified ideographs).

1 Like