I would like to create new blob on FileShareClient in Azure FileShare resource with .NET api. Is there any way to specify it's encoding while doing this operation? To open write files I use something like this:
public Stream FileShareOpenWrite(Response<ShareFileProperties> properties, ShareFileOpenWriteOptions openOptions)
{
return shareFileClient.OpenWrite(false, properties.Value.ContentLength, openOptions);
}
Is there any possibility to specify encoding while open ShareFileClient's writer?
For local files i have similar function which creates new StreamWriter and allows me to specify encoding to ANSI directly:
using (var writer = new StreamWriter(userInputModel.Path, true, Encoding.GetEncoding("ISO-8859-1")))