EncodeSql implementation principle

HI,

1.What is the underlying implementation principle of EncodeSql?

2.EncodeSql how to deal with single quotes in SQL?

Hi Suraj Borade,

   Thanks!