How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?

The filter responsible for adding these characters is wptexturize, you can remove it using remove_filter.

remove_filter( 'the_content', 'wptexturize' );
remove_filter( 'the_excerpt', 'wptexturize' );

error code: 523