diff --git a/CefSharp.Core/Internals/CefResponseWrapper.h b/CefSharp.Core/Internals/CefResponseWrapper.h
index 28a22c706..8f25a2668 100644
--- a/CefSharp.Core/Internals/CefResponseWrapper.h
+++ b/CefSharp.Core/Internals/CefResponseWrapper.h
@@ -38,6 +38,22 @@ namespace CefSharp
}
public:
+ virtual property String^ Charset
+ {
+ String^ get()
+ {
+ ThrowIfDisposed();
+
+ return StringUtils::ToClr(_response->GetCharset());
+ }
+ void set(String^ val)
+ {
+ ThrowIfDisposed();
+
+ _response->SetCharset(StringUtils::ToNative(val));
+ }
+ }
+
virtual property bool IsReadOnly
{
bool get()
diff --git a/CefSharp/IResponse.cs b/CefSharp/IResponse.cs
index 1ce3a45eb..901a1d5d0 100644
--- a/CefSharp/IResponse.cs
+++ b/CefSharp/IResponse.cs
@@ -12,6 +12,11 @@ namespace CefSharp
///
public interface IResponse : IDisposable
{
+ ///
+ /// Get/Set the response charset.
+ ///
+ string Charset { get; set; }
+
///
/// MimeType
///