We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The encoding parameter accepts an Encoding value, such as Encoding.UTF8. However when I put it in my appsettings.json the conversion does not work:
encoding
Encoding
Encoding.UTF8
System.InvalidCastException: "Invalid cast from 'System.String' to 'System.Text.Encoding'"
I'm surprised something so basic is not supported, so am I doing something wrong, or is it actually not supported?
Edit: I thought this was an enum, it actually isn't, it's a singleton....
The text was updated successfully, but these errors were encountered:
Hi @gandhis1 , correct syntax for such parameter is System.Text.Encoding::UTF8
We should update the documentation regarding this. HTH!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The
encoding
parameter accepts anEncoding
value, such asEncoding.UTF8
. However when I put it in my appsettings.json the conversion does not work:System.InvalidCastException: "Invalid cast from 'System.String' to 'System.Text.Encoding'"
I'm surprised something so basic is not supported, so am I doing something wrong, or is it actually not supported?
Edit: I thought this was an enum, it actually isn't, it's a singleton....
The text was updated successfully, but these errors were encountered: