E.g: Code=\'\'. If I use Code =\'\'\'\', in the result I\'m getting only one quote.
Code=\'\'
Code =\'\'\'\'
Keep the current start and end quotes. Then double each quote supposed to be a part of the string value.
Code = ''''''
Or you can perhaps use a Unicode string literal:
Code = U&'\0027\0027'