In my Magento store, I am facing one issue that I am not able to import the product with special characters. For the CSV base I have followed the below tutorial. Can anyone please help me how can I encode with UTF-8 in CSV when writing it?
https://www.rakeshjesadiya.com/how-to-create-a-csv-file-to-download-using-magento-2/
Note: It's custom product import