Normalizes line endings in content for Windows systems. Converts Unix-style (\n) line endings to Windows-style (\r\n). Handles mixed/corrupted encodings by first normalizing to Unix, then converting.
Content with potentially mixed line endings
Content with normalized line endings
Normalizes line endings in content for Windows systems. Converts Unix-style (\n) line endings to Windows-style (\r\n). Handles mixed/corrupted encodings by first normalizing to Unix, then converting.