Timeline for How can I replace text and change encoding from a shell script without Vim?
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 29, 2020 at 3:08 | comment | added | Shawn | @Chuck You're looking for iconv. | |
| Feb 26, 2020 at 10:05 | comment | added | ctrl-alt-delor | The is a utf converter (I Can't remember the name), we use pipes to join it to other tools. No one likes utf-16 (except microsoft and javascript). It is a terrible encoding. unicode is at least 24 bit, so you get extension pages in utf-16, Common characters are 16-bit, but most are 32-bit. A lot of software does not realise this, and breaks. | |
| Feb 25, 2020 at 20:46 | comment | added | Chuck | Is there a way to take care of the file encoding with sed? git doesn't like UTF-16, apparently (treats it as a binary file), which is the reason for the saving it as UTF-8. Some quick searching doesn't show anything to change the file encoding with sed like I am with vim. | |
| Feb 25, 2020 at 19:14 | history | answered | ctrl-alt-delor | CC BY-SA 4.0 |