nswag.exe encoding
See original GitHub issueHi, I am using the nswag.exe command line to generate a C# client as it is described here: https://github.com/RSuter/NSwag/wiki/CommandLine
nswag.exe run nswag.json
However, the generated document is UTF-16 LE encoded. Is there are way to change the encoding of the generated file to UTF-8?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
nswag.exe encoding · Issue #1416
Hi, I am using the nswag.exe command line to generate a C# client as it is ... nswag.json However, the generated document is...
Read more >CommandLine · RicoSuter/NSwag Wiki
To see all available commands and parameters, run the command line application "nswag.exe" without parameters and enter "help" as command.
Read more >Get started with NSwag and ASP.NET Core
Learn how to use NSwag to generate documentation and help pages for an ASP.NET Core web API.
Read more >Automatically generating C# API clients on build with NSwag
Coding, Azure DevOps and more. ... This target will invoke nswag.exe using an nswag.json config file to generate the required code.
Read more >How To Use Nswag With ASP.NET Core And Generate ...
The NSwag project provides tools to generate Swagger specifications from existing ASP.NET Web API controllers and client code from these Swagger ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Personally I’d be fine with just changing it to UTF-8 (without BOM, since that isn’t recommended for UTF-8).
@RicoSuter Would be cool if we’d had a setting for that.
I love consistency and I think a minor update should not break this existing behavior? (e.g. I think in VS the default is UTF-8 with BOM?)
Additionally, the new default could be to honor the editorconfig
charset
property? 🙏