Im thinking about the best way how to check encoding of ASCII (.txt) file in FME Desktop.
But, is is possible, at all?
Now, I have TXT reader in my workspace nd then I use stringsearcher transformer to check unsupported letters. Im not sure if it is the best way...
Thank You so much!
Lubo
Best answer by david_r
Unless the text file contains a BOM (byte-order mark) in the first two characters to indicate Unicode, there really is no definitive way of knowing which encoding a text file contains. If you can make a lot of fairly hard assumptions, you can assume that it's probably this or that, but in reality even that is stretching it a bit.
If the text files does contain a BOM header, FME should be able to auto-detect it correctly, although it may depend on your specific use case.
Unless the text file contains a BOM (byte-order mark) in the first two characters to indicate Unicode, there really is no definitive way of knowing which encoding a text file contains. If you can make a lot of fairly hard assumptions, you can assume that it's probably this or that, but in reality even that is stretching it a bit.
If the text files does contain a BOM header, FME should be able to auto-detect it correctly, although it may depend on your specific use case.
Unless the text file contains a BOM (byte-order mark) in the first two characters to indicate Unicode, there really is no definitive way of knowing which encoding a text file contains. If you can make a lot of fairly hard assumptions, you can assume that it's probably this or that, but in reality even that is stretching it a bit.
If the text files does contain a BOM header, FME should be able to auto-detect it correctly, although it may depend on your specific use case.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.