-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Enhancement - ResourceHandler Encoding #691
New issue
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
Enhancement - ResourceHandler Encoding #691
Conversation
…eamble then Cef will use DefaultEncoding to render the html)
CefSharp/ResourceHandler.cs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preable -> Preamble
|
I tested it out, works perfect 👍 |
|
Fixed the spelling mistakes, thanks 👍 |
…coding Enhancement - ResourceHandler Encoding
|
I had a quick look to see if there was a more elegant way to write the |
|
There is a "nicer looking" alternative that uses However, I think this will save the internal byte array of var memoryStream = new MemoryStream(preamble.Length + bytes.Length); |
|
Nice finishing touch 👍 Thanks 😄 |
Add ability to specify encoding and include a preamble with using the
ResourceHandler.Resolves issue #689