aboutsummaryrefslogtreecommitdiffstats
path: root/common_codez
diff options
context:
space:
mode:
authorMárcio Silva <coadde at hyperbola dot info>2017-06-02 15:48:13 -0300
committerMárcio Silva <coadde at hyperbola dot info>2017-06-02 17:12:07 -0300
commitae928016bf637b26326ec335b10898c6c2b0e4b9 (patch)
tree98fa3a0180c9eba01d3b9082373e7a402c3f632e /common_codez
parentb4830e97ae51396ccaa9ca2acb469aef80094ae8 (diff)
downloadhyperbot-ae928016bf637b26326ec335b10898c6c2b0e4b9.tar.lz
hyperbot-ae928016bf637b26326ec335b10898c6c2b0e4b9.tar.xz
hyperbot-ae928016bf637b26326ec335b10898c6c2b0e4b9.zip
Import some files from pbot-ng project and branding this project to hyperbot
Diffstat (limited to 'common_codez')
-rw-r--r--common_codez14
1 files changed, 14 insertions, 0 deletions
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
+}