When I run the following command on Windows
soffice.exe --headless --convert-to txt:Text --outdir C:\C#\odt2txt “R:\Greek\Greek Lemon Roast Chicken.odt”
The text utf-8 characters are corrupted.
When I run the following command on Linux
libreoffice --headless --convert-to txt:Text --outdir C:\C#\odt2txt “R:\Greek\Greek Lemon Roast Chicken.odt”
The utf-8 characters are correct. The Region on Windows was changed to UTF-8, this made no difference. When I run libreoffice on linux under python, the output text files are correct. When I run libreoffice on linux under dotnet c# the text output is corrupted.
Why is the text corrupted on Windows and c#. I much prefer programming with c#, but will use python if I have to.
Thank you.