aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/editing.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index f3c7223a..238db220 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -518,7 +518,7 @@ function M.filter_through(command)
local p = spawn(command)
p:write(buffer.target_text)
p:close()
- buffer:replace_target(p:read('*a'))
+ buffer:replace_target(p:read('*a'):iconv('UTF-8', _CHARSET))
if s ~= e then
buffer:set_sel(buffer.target_start, buffer.target_end)
else