Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A4EF9200C7E for ; Tue, 23 May 2017 16:45:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A37CE160BC3; Tue, 23 May 2017 14:45:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E7C32160BB6 for ; Tue, 23 May 2017 16:45:19 +0200 (CEST) Received: (qmail 31122 invoked by uid 500); 23 May 2017 14:45:18 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 31110 invoked by uid 99); 23 May 2017 14:45:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 May 2017 14:45:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 03E0BC061E for ; Tue, 23 May 2017 14:45:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id wdz_eCNz3KD1 for ; Tue, 23 May 2017 14:45:17 +0000 (UTC) Received: from mail-yw0-f171.google.com (mail-yw0-f171.google.com [209.85.161.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 1EE385F20C for ; Tue, 23 May 2017 14:45:17 +0000 (UTC) Received: by mail-yw0-f171.google.com with SMTP id b68so75540262ywe.3 for ; Tue, 23 May 2017 07:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=slrdOTS+8v8Y7WnnMNsHWdKUi9bBzRdozUYs6hbTdXo=; b=WB81WVislItxkfmd0D0x1uUjBA67IE6g+34isMKCcJzIPWJ7/ztBJ3Ajl91wMZovtp x1SYZPxs8IvzhfXU2keYThWn6GX5wsRjWA8sDQRPsDcw7SOkT5fGsAGim0XQfdbrctpS mJSQceWfiP4D2nHsvnnPwEVn4EdxWISyNYJMYyzPLdTy8xnjaxyxKHYbMdtyN9yP5nu8 G/nDdEvmMZ9gRu+YEpQydn4N1tL+YHaXZHaOGH4DFOeoj7vF1Feqr1B9mlpIWvwJyLUs dGjH/Wky5CLubRozaudlguKUOVeg8uU+8pmwsLzotowsxJNyIV9EbtdkvL45gKt+lVPL hrSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=slrdOTS+8v8Y7WnnMNsHWdKUi9bBzRdozUYs6hbTdXo=; b=iKqDGdBldEwh03gOLh0MbMhVX/W1C+okEfHyi8+P2RFXINmcAcJLtVBsV4OgM3xddP dz8wCGM+cLoVvUIDCDk3fcx6j4nMDRZGyKRf83ZiCB+9E0zzlIcuk1jmXaF8qIj07ckp H7J7oLX7TOFePbmwjLMhWigFKNZFhVCpOhg3x6vTnsUGCYIrrX9Aq3120WJlKSyGyTsO Kw4/b7GTncJXAbiZNCH3QGn3MCfZwaMcUdcnO+FQin8QX4KLW/DWmktRxSkX5xWXdXiS feOjEOG/+Dcgb6DkB/BqpMPs5GW8vPopMnkx9Y0AEHY6UQxpvJLlAK++47InQ9UTQ4gi TgOw== X-Gm-Message-State: AODbwcCmaiv7YPrdPNHrw/bBjFdAgI6Qz3qRWc4iICDsHrX+eWF0tTKQ HK92eiT4S7SaGhWHEiwOs21ftunGEA== X-Received: by 10.129.182.12 with SMTP id u12mr24942293ywh.140.1495550716540; Tue, 23 May 2017 07:45:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrien Grand Date: Tue, 23 May 2017 14:45:06 +0000 Message-ID: Subject: Re: utf-8 issues depending on host To: Lucene Users Content-Type: multipart/alternative; boundary="94eb2c1bd89c33fe3f0550320917" archived-at: Tue, 23 May 2017 14:45:20 -0000 --94eb2c1bd89c33fe3f0550320917 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The issue is likely due to how you create the FileReader that you pass to TextField. Maybe you don't give it the right encoding? Le mar. 23 mai 2017 =C3=A0 16:38, Kudrettin G=C3=BClery=C3=BCz a =C3=A9crit : > Hi, > > Depending on the host running indexer, UTF-8 characters are not stored (n= ot > correctly, anyways) in Lucene index. > > Interestingly, locale output is identical on all hosts but the output is > different. > > Apparently using FileReader could be the culprit. I am currently using > TextField(String name, Reader reader) > > How can I improve this? What is the suggested way for handling this using > 5.2.1? TextField(String name, String value, Store store)? > > Thank you > --94eb2c1bd89c33fe3f0550320917--