Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D628A184EB for ; Sun, 31 May 2015 20:09:13 +0000 (UTC) Received: (qmail 99108 invoked by uid 500); 31 May 2015 20:09:12 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 98996 invoked by uid 500); 31 May 2015 20:09:12 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 98881 invoked by uid 99); 31 May 2015 20:09:12 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 May 2015 20:09:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BF9B21A40FD; Sun, 31 May 2015 20:09:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id EYtq3B9ofw5U; Sun, 31 May 2015 20:09:04 +0000 (UTC) Received: from relayvx11a.securemail.intermedia.net (relayvx11a.securemail.intermedia.net [64.78.56.46]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 281D7453F3; Sun, 31 May 2015 20:09:04 +0000 (UTC) Received: from securemail.intermedia.net (localhost [127.0.0.1]) by emg-ca-1-1.localdomain (Postfix) with ESMTP id 56E7953DE7; Sun, 31 May 2015 13:08:42 -0700 (PDT) Subject: Re: using utf-8 encoding on java files MIME-Version: 1.0 x-echoworx-emg-received: Sun, 31 May 2015 13:08:42.341 -0700 x-echoworx-msg-id: cc95d313-060f-494e-844d-961c8cfbbe46 x-echoworx-action: delivered Received: from emg-ca-1-1.securemail.intermedia.net ([10.254.155.11]) by emg-ca-1-1 (JAMES SMTP Server 2.3.2) with SMTP ID 544; Sun, 31 May 2015 13:08:42 -0700 (PDT) Received: from MBX080-W4-CO-1.exch080.serverpod.net (unknown [10.224.117.101]) by emg-ca-1-1.localdomain (Postfix) with ESMTP id 25AB153DE7; Sun, 31 May 2015 13:08:42 -0700 (PDT) Received: from MBX080-W4-CO-2.exch080.serverpod.net (10.224.117.102) by MBX080-W4-CO-1.exch080.serverpod.net (10.224.117.101) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Sun, 31 May 2015 13:08:41 -0700 Received: from MBX080-W4-CO-2.exch080.serverpod.net ([10.224.117.102]) by mbx080-w4-co-2.exch080.serverpod.net ([10.224.117.102]) with mapi id 15.00.1044.021; Sun, 31 May 2015 13:08:41 -0700 From: Chris Nauroth To: "user@zookeeper.apache.org" , "dev@zookeeper.apache.org" Thread-Topic: using utf-8 encoding on java files Thread-Index: AQHQm7zmP1W0uA7B20e+tE+oohIy0J2W0qaAgAAXnID//5lugA== Date: Sun, 31 May 2015 20:08:41 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [50.181.140.32] x-source-routing-agent: Processed Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable Another small benefit of UTF-8 source encoding is that we can write test cases for passing around multi-byte characters without having to use the "\u0000"-style escaping syntax. --Chris Nauroth On 5/31/15, 12:15 PM, "Ra=FAl Guti=E9rrez Segal=E9s" = wrote: >On 31 May 2015 at 10:51, Michi Mutsuzaki wrote: > >> It sounds fine to me, but any reason why we shouldn't stick to ascii? >> > >No strong reasons tbh, just the fact that utf-8 is sometimes useful for >comments and it's >probably becoming (if not already) the norm, etc. > > >-rgs > > > >> On Sun, May 31, 2015 at 9:14 AM, Ra=FAl Guti=E9rrez Segal=E9s >> wrote: >> > Heya, >> > >> > So in this issue: >> > >> > https://issues.apache.org/jira/browse/ZOOKEEPER-2197 >> > >> > we ran into a problem with utf-8 chars. How what about we teach javac >>to >> > treat >> > all files as utf-8? Would that be a problem for anyone/any platform? >> > Something like >> > this in build.xml: >> > >> > >> > > > includeantruntime=3D"false" >> > target=3D"${javac.target}" source=3D"${javac.source}" >> debug=3D"on" >> > encoding=3D"UTF-8"> >> > >> > >> > >> > >> > >> > >> > Thoughts? >> > >> > >> > -rgs >>