summaryrefslogtreecommitdiff
path: root/sfeed.1
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-03-29 11:25:30 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-03-29 11:25:30 +0200
commit275cc6c2d02d1d2782b4d13d9ef0889f3ee93876 (patch)
tree7af0b237155bae34a0895f90e8cde81606af8783 /sfeed.1
parentd5ee385b4b5f19934a00408a2addc70f965ea4a9 (diff)
sfeed.1: add an example to convert to UTF-8 using iconv
Diffstat (limited to 'sfeed.1')
-rw-r--r--sfeed.111
1 files changed, 10 insertions, 1 deletions
diff --git a/sfeed.1 b/sfeed.1
index 8075ca4..70354e3 100644
--- a/sfeed.1
+++ b/sfeed.1
@@ -1,4 +1,4 @@
-.Dd November 26, 2021
+.Dd March 29, 2022
.Dt SFEED 1
.Os
.Sh NAME
@@ -55,6 +55,15 @@ Item, categories, multiple values are separated by the '|' character.
.Bd -literal
curl -s 'https://codemadness.org/atom.xml' | sfeed
.Ed
+.Pp
+To convert the character set from a feed that is not UTF-8 encoded the
+.Xr iconv 1
+tool can be used:
+.Bd -literal
+curl -s 'https://codemadness.org/some_iso-8859-1_feed.xml' | \\
+iconv -f iso-8859-1 -t utf-8 | \\
+sfeed
+.Ed
.Sh EXAMPLE SETUP
1. Create a directory for the sfeedrc configuration and the feeds:
.Bd -literal