diff --git a/VTK/Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h b/VTK/Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h
index 54c7476bf01e929a81472de13b8b0231a489374f..e162f359d05420c45859f8c59ee647606ae8352f 100644
--- a/VTK/Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h
+++ b/VTK/Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h
@@ -16,7 +16,8 @@ VTK_ABI_NAMESPACE_BEGIN
 struct vtkPythonStdStreamCaptureHelper
 {
   PyObject_HEAD
-  int softspace; // Used by print to keep track of its state.
+  int softspace;        // Used by print to keep track of its state.
+  const char* Encoding; // Encoding, set to "utf-8"
   bool DumpToError;
 
   void Write(const char* string)
@@ -84,6 +85,9 @@ static PyMemberDef vtkPythonStdStreamCaptureHelperMembers[] = {
   { VTK_PYTHON_MEMBER_DEF_STR("softspace"), T_INT,
     offsetof(vtkPythonStdStreamCaptureHelper, softspace), 0,
     VTK_PYTHON_MEMBER_DEF_STR("Placeholder so print can keep state.") },
+  { VTK_PYTHON_MEMBER_DEF_STR("encoding"), T_STRING,
+    offsetof(vtkPythonStdStreamCaptureHelper, Encoding), READONLY,
+    VTK_PYTHON_MEMBER_DEF_STR("Text encoding for file.") },
   { nullptr, 0, 0, 0, nullptr }
 };
 
@@ -250,6 +254,7 @@ static vtkPythonStdStreamCaptureHelper* NewPythonStdStreamCaptureHelper(bool for
     PyObject_New(vtkPythonStdStreamCaptureHelper, &vtkPythonStdStreamCaptureHelperType);
   if (wrapper)
   {
+    wrapper->Encoding = "utf-8";
     wrapper->DumpToError = for_stderr;
   }
 
