DOC: Add test for encoding of docstring validation for Windows
Add a test for PR #25466
Hello @kpapdac! Thanks for opening this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:

* In the file [`scripts/tests/test_validate_docstrings.py`](https://github.com/pandas-dev/pandas/blob/61e65258fb443fb26aae44b72345f0ce6f6a5f4d/scripts/tests/test_validate_docstrings.py):

> [Line 1157:32](https://github.com/pandas-dev/pandas/blob/61e65258fb443fb26aae44b72345f0ce6f6a5f4d/scripts/tests/test_validate_docstrings.py#L1157): [W292](https://duckduckgo.com/?q=pep8%20W292) no newline at end of file



