sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 275cc6c2d02d1d2782b4d13d9ef0889f3ee93876
parent d5ee385b4b5f19934a00408a2addc70f965ea4a9
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 29 Mar 2022 11:25:30 +0200

sfeed.1: add an example to convert to UTF-8 using iconv

Diffstat:
Msfeed.1 | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git 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