I think the issue was by ths following , The one thing which looks wrong in the code you have provided is that for utf-8 you should be using
Response.CodePage = 65001
VB Streamwriter set to ISO-8859-1 but file get UTF8-Without Bom encoding
By : user100860
Date : March 29 2020, 07:55 AM
may help you . There's a reason that you have to pass encodings to the constructors of both readers and writers. Files, in and of themselves, don't have encodings. They're just a collection of bytes. It's up to you, be selecting an encoding, to say what interpretation you want to place on those bytes. You opened the StreamReader without specifying an encoding and so it defaults to UTF-8.