2022-01-16 18:20:39 +00:00
|
|
|
---
|
|
|
|
title: "character-encoding"
|
2022-01-26 22:35:07 +00:00
|
|
|
tags: [ "Documentation", "System" ]
|
2022-01-16 18:20:39 +00:00
|
|
|
---
|
2020-01-02 00:04:35 +00:00
|
|
|
Convert a text file from one encoding type to another with:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
iconv -f ascii -t utf8 oldfilename > newfilename
|
|
|
|
```
|
2020-01-02 00:04:35 +00:00
|
|
|
|
|
|
|
Available options are:
|
|
|
|
|
|
|
|
* ISO-8859-15
|
|
|
|
|
|
|
|
* UTF-8
|
|
|
|
|
|
|
|
* ASCII
|
|
|
|
|
|
|
|
* Lots more
|
|
|
|
|
|
|
|
Generate a full list of encoding types available with:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
iconv -l
|
|
|
|
```
|
2020-01-02 00:04:35 +00:00
|
|
|
|