I think it takes a lot of time to convert one by one.
I have a map filled with html files encoded in windows-1252. I need to change all files encoding to utf-8. Is that possible in FME?
Best answer by daveatsafe
Hi @daveatsafe ,
Thank you for your solution!
I have tried it and it works with one file at a time.
Then I tried using Zip instead since I wish to get all files done with the encoding workspace. But I ended up with a big html (instead of several html files which is suppose to be the same number of files in the original).
So I tried batch processing with reader "Directory and File Pathnames",
But now facing the problem that destination folder option is not available. Instead it writes everything to a single file too.
Any tips?
Hi @lily,
You can use the Dataset Fanout to distinguish the output files:
- Open the input Text file feature type properties, pick the Format Attribute tab, then click the box beside fme_basename, if it not already clicked.
- In the Navigator pane of Workbench, expand the parameters for the Text File writer, then double click on Fanout Dataset.
- Set the Destination Fanout Directory to the output zip file (zip files are considered folders by FME)
- Set the Fanout Expression to '@Value(fme_basename).html'
This should write each input file to a separate output file in the output zip file.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.