I tried to retrieve webpage information using an HTTP request, but because the webpage’s charset is set to Big5, the retrieved data appears as garbled text.
Currently, I’ve tried saving the content using Convert to File and Read/Write Files from Disk, then using Execute Command to run iconv -f big5 -t utf-8, but after executing the command, the content of the .txt file is cleared instead of being successfully converted.
tl/dr → You need to do it in 2 steps. 1) iconv(convert and create converted output file) 2) move/rename files
Another alternative, if the web server you are fetching content from will cooperate, is to add an accept header and ask/force the server to do the conversion for you.
Thank you for your response. I resolved the issue using a different method.
I configured the Response Format in the HTTP request to output as a File, and then used this file with the command iconv -f big5 -t utf-8, which successfully performed the conversion.