php2html
php2html copied to clipboard
Set encoding when processing HTML
Hello,
First of all, thank you for the tool.
I encountered this issue, and I fixed it by changing the line number 304:
else:
if(verbose):print("*****HTML Parsing: Everythings OK..Nothing to be done!!...skipped...");
outfile=open(outfilepath,"w");
outfile.write(data);
to
else:
if(verbose):print("*****HTML Parsing: Everythings OK..Nothing to be done!!...skipped...");
outfile=open(outfilepath,"w",encoding="utf-8");
outfile.write(data);
I think that might be something that you wan to consider.
PS: I am using Windows 10.
Regards,
Mojtaba
you can make a pull request with your changes.