From 81c661b776de196949e9c09033af8d62c5af91e8 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Thu, 3 Feb 2022 16:25:38 +0100 Subject: [PATCH] Unicode support ;) --- print_fzf.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/print_fzf.py b/print_fzf.py index 3c56fb2..3d6a31b 100644 --- a/print_fzf.py +++ b/print_fzf.py @@ -2,9 +2,8 @@ import os,sys #just a quick script to print the fzf.txt file content dn = os.path.dirname(os.path.realpath(__file__)) -fzf_file = open(dn + "/fzf.txt").read() -fzf_file = fzf_file.replace("", "") -fzf_file = fzf_file.replace('', '') - +fzf_file = open(dn + "/fzf.txt", encoding="utf-8").read() +fzf_file = fzf_file.replace("", "") +fzf_file = fzf_file.replace('', '') print(fzf_file) sys.exit() \ No newline at end of file