From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Zimmerman Newsgroups: gmane.emacs.help Subject: Re: google-translate Date: Fri, 18 Sep 2015 21:17:51 -0700 Message-ID: <20150919041751.GA25867@ahiker.mooo.com> References: <87oahdl3g3.fsf@mbork.pl> <87twr5nrhg.fsf@gmail.com> <87d1xs5yd5.fsf_-_@debian.uxu> <87twqvoyo7.fsf_-_@debian.uxu> <87eghyv9ji.fsf@gmail.com> <87eghwznh3.fsf@debian.uxu> <87d1xf2rsv.fsf@debian.uxu> Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1442636301 8693 80.91.229.3 (19 Sep 2015 04:18:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Sep 2015 04:18:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 19 06:18:13 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zd9bJ-0001tM-3P for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Sep 2015 06:18:13 +0200 Original-Received: from localhost ([::1]:43498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zd9bI-0007ha-I6 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Sep 2015 00:18:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zd9b9-0007hR-6c for help-gnu-emacs@gnu.org; Sat, 19 Sep 2015 00:18:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zd9b5-0001wk-62 for help-gnu-emacs@gnu.org; Sat, 19 Sep 2015 00:18:03 -0400 Original-Received: from ahiker.mooo.com ([173.255.215.69]:38081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zd9b5-0001pc-06 for help-gnu-emacs@gnu.org; Sat, 19 Sep 2015 00:17:59 -0400 Original-Received: from localhost ([127.0.0.1] helo=ahiker.mooo.com) by ahiker.mooo.com with esmtp (Exim 4.80) (envelope-from ) id 1Zd9ax-0006lB-4I for help-gnu-emacs@gnu.org; Fri, 18 Sep 2015 21:17:51 -0700 Content-Disposition: inline In-Reply-To: <87d1xf2rsv.fsf@debian.uxu> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 173.255.215.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107245 Archived-At: On 2015-09-19 02:09 +0200, Emanuel Berg wrote: > (loop for trans-pair in '(("\345" "å") > ("\344" "ä") > ("\366" "ö") ) do That looks like an encoding mismatch, not like a bug. I bet these byte values are the latin-1 codes for these letters. > (defun translate (src-lang dst-lang text) > (interactive) > (let ((killed kill-ring)) > (google-translate-translate src-lang dst-lang text 'kill-ring) > (let ((translation (string-make-unibyte (current-kill 0)))) ^^^^^^^^^^^^^^^^^^^ Why do you do that? That may be your problem right there. -- Please *no* private copies of mailing list or newsgroup messages. Rule 420: All persons more than eight miles high to leave the court.