Drizin / CodegenCS

C# Toolkit for Code Generation (T4 alternative!)
MIT License
223 stars 30 forks source link

Output file Encoding other than UTF8 with BOM #21

Closed pavelhodek closed 4 months ago

pavelhodek commented 10 months ago

I can't find a way to set Encoding of output files. Everything is saved in UTF8 with BOM. Can Encoding be set somehow? Thank you.

Drizin commented 8 months ago

@pavelhodek check ICodegenContext.SaveToFolder() (extension method). You can provide the encoding to save files.