From 275cc6c2d02d1d2782b4d13d9ef0889f3ee93876 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 29 Mar 2022 11:25:30 +0200 Subject: sfeed.1: add an example to convert to UTF-8 using iconv --- sfeed.1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sfeed.1') 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 -- cgit v1.2.3