You have to edit the file default-filters.php which is located here:
/your_WP_root_directory/wp-includes/default-filters.php
Comment out the line:
add_filter( 'the_content', 'wptexturize' );
Based on this topic: https://wordpress.org/support/topic/please-give-us-the-option-to-turn-of-smart-quotes .