From ae928016bf637b26326ec335b10898c6c2b0e4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Silva?= Date: Fri, 2 Jun 2017 15:48:13 -0300 Subject: Import some files from pbot-ng project and branding this project to hyperbot --- common_codez | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 common_codez (limited to 'common_codez') diff --git a/common_codez b/common_codez new file mode 100644 index 0000000..22c3b6e --- /dev/null +++ b/common_codez @@ -0,0 +1,14 @@ +#! /bin/bash + +function replace_wierd_html_chars +{ + w3m -dump -T text/html -cols 9999 + + # Let's see if this new code works better. Try CP1252 encoding and if it's not possible + # utf-8 +# while read input +# do +# recode html..CP1252 2>/dev/null <<< "${input}" || +# recode html..utf-8 2>/dev/null <<< "${input}" +# done +} -- cgit v1.2.3