[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Rtliber-help] [PATCH] * rt-liberation-rest.el: Enforce UTF-8 coding in
From: |
Martin Jesper Low Madsen |
Subject: |
[Rtliber-help] [PATCH] * rt-liberation-rest.el: Enforce UTF-8 coding in REST API response |
Date: |
Thu, 14 Apr 2016 10:18:53 +0200 |
Fixes latin characters that are displayed as byte codes if the RT
database uses a different encoding other than UTF-8.
---
rt-liberation-rest.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/rt-liberation-rest.el b/rt-liberation-rest.el
index 583aec3..b244397 100644
--- a/rt-liberation-rest.el
+++ b/rt-liberation-rest.el
@@ -123,10 +123,10 @@
(url-retrieve-synchronously url))
str)
(setq str
- (with-current-buffer response
+ (decode-coding-string
+ (with-current-buffer response
(buffer-substring-no-properties (point-min)
- (point-max))))
-
+ (point-max))) 'utf-8))
(rt-liber-rest-write-debug
(format "outgoing rest call -->\n%s\n<-- incoming\n%s\n" url str))
str)))
--
2.3.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Rtliber-help] [PATCH] * rt-liberation-rest.el: Enforce UTF-8 coding in REST API response,
Martin Jesper Low Madsen <=