lk/system/character-encoding.md

25 lines
332 B
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "character-encoding"
2025-02-12 14:01:15 +00:00
tags: [ "System", "encoding" ]
2022-01-16 18:20:39 +00:00
---
2025-02-12 14:01:15 +00:00
2020-01-02 00:04:35 +00:00
Convert a text file from one encoding type to another with:
2025-02-12 14:01:15 +00:00
```sh
iconv -f ascii -t utf8 oldfilename > newfilename
```
2020-01-02 00:04:35 +00:00
Available options are:
2025-02-12 14:01:15 +00:00
- ISO-8859-15
- UTF-8
- ASCII
- Lots more
2020-01-02 00:04:35 +00:00
Generate a full list of encoding types available with:
2025-02-12 14:01:15 +00:00
```sh
iconv -l
```
2020-01-02 00:04:35 +00:00