Html table -convert-to csv, strange characters

hi, i’m using

libreoffice --headless -convert-to csv ./evprice.xls 

to convert a html table to a csv file.
when i open the output csv file it contains a lot of strange characters, just like when opening an exe file in notepad.

here are some of the characters óz·³VV®<s&žF$Ö:u,+Ïó㼌2²zggg

when i open the html table in libreoffice manually it all works great, but i need a command line solution.

Maybe is an issue with the character set, but you can attach directly a html table in calc with:
Menu/Insert/Link to external data, select the html file, and select the table to import. There some options about it in Menu/Tools/Load-Save/HTML compatibility.

i’m using the command line version

i don’t know what’s changed but now theres html in the csv file. it’s not exactly the same html as in the original table so libreoffice did do something to it but still not converted to csv.