Bash: How to test file encoding and convert
Jump to:
| Project: | Linux software |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
| Related pages: | #5388: Find encoding of a file and re-encode file |
| Tags: | bash script, iconv, Text encoding |
Description
Within a bash script, how to test the encoding of a file and convert the encoding if necessary?
Comments
#1
iconv - Convert encoding of given files from one encoding to another
#2