httpx
httpx copied to clipboard
csv file not utf8 with bom
trafficstars
httpx version:
v1.2.4

Current Behavior:
csv file not utf8 with Bom
Expected Behavior:
Add utf8 with bom at the beginning of the csv file
Steps To Reproduce:
1.Run 'echo baidu.com | httpx -path /index.html -o result.csv -csv'

- open excel

- add utf8 with bom at the beginning of the csv file
use '\ufefft' to file
@ehsandeep : Converting the output to specified input of encoding scheme will solve this issue and the issue we discussed earlier about non-utf-8 data ingestion. An additional flag can be added to enable optional character encoding of output :
-output-encoding utf8
@HyWell this is now fixed in dev version - https://github.com/projectdiscovery/httpx/pull/887#pullrequestreview-1196958287