diff options
Diffstat (limited to 'ar')
| -rwxr-xr-x | ar/.config/newsboat/fulltext.py | 5 | ||||
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-system | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/ar/.config/newsboat/fulltext.py b/ar/.config/newsboat/fulltext.py index 4f567e5..33896b1 100755 --- a/ar/.config/newsboat/fulltext.py +++ b/ar/.config/newsboat/fulltext.py @@ -90,8 +90,11 @@ def extract(url): with open(cp, "r", encoding="utf-8", errors="replace") as f: return f.read() try: + # Force UTF-8 decoding: some sites (e.g. CNBC) serve UTF-8 but declare + # no charset in the HTTP header or an early <meta>, so rdrview falls back + # to Latin-1/CP1252 and mangles multibyte chars (em-dash -> "â€""). out = subprocess.run( - ["rdrview", "-H", url], + ["rdrview", "-E", "UTF-8", "-H", url], capture_output=True, text=True, timeout=TIMEOUT, ) except (FileNotFoundError, subprocess.TimeoutExpired): diff --git a/ar/.local/bin/statusbar/sb-system b/ar/.local/bin/statusbar/sb-system index 8f022d1..dcf1062 100755 --- a/ar/.local/bin/statusbar/sb-system +++ b/ar/.local/bin/statusbar/sb-system @@ -45,9 +45,8 @@ case $BLOCK_BUTTON in [ "$SHOW_DISK" = 1 ] && notify-send "💽 Disk space" "$(df -h --output=target,used,size)" ;; 2) setsid -f "$TERMINAL" -e htop ;; -3) notify-send "🖥 System module" "CPU temp, CPU bars, Memory, Disk usage -Left click: show hogs & disk info -Middle click: open htop" ;; +3) notify-send "🖥 System module" "\- Left click: show hogs & disk info +- Middle click: open htop" ;; 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac |
