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 0BD97200D57 for ; Mon, 11 Dec 2017 14:35:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0A81A160C10; Mon, 11 Dec 2017 13:35:05 +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 56C8D160C22 for ; Mon, 11 Dec 2017 14:35:04 +0100 (CET) Received: (qmail 77843 invoked by uid 500); 11 Dec 2017 13:35:03 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 77789 invoked by uid 99); 11 Dec 2017 13:35:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Dec 2017 13:35:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CABA01806B0 for ; Mon, 11 Dec 2017 13:35:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id fePEtS4hpApO for ; Mon, 11 Dec 2017 13:35:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 288395F3D0 for ; Mon, 11 Dec 2017 13:35:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6AEDEE0E1C for ; Mon, 11 Dec 2017 13:35:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 23DDB212FC for ; Mon, 11 Dec 2017 13:35:00 +0000 (UTC) Date: Mon, 11 Dec 2017 13:35:00 +0000 (UTC) From: "Zhang Hongda (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CSV-219) The behavior of quote char using is not similar as Excel does when the first string contains CJK char(s) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 11 Dec 2017 13:35:05 -0000 [ https://issues.apache.org/jira/browse/CSV-219?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1628587= 6#comment-16285876 ]=20 Zhang Hongda edited comment on CSV-219 at 12/11/17 1:34 PM: ------------------------------------------------------------ Thanks Gary. By the way, I even deleted the "if (c <=3D COMMENT) {" branch = to meet what the Microsoft Excel does in my job. But when I have read the c= omment under it, I am not sure if it is a bug or a feature. I think this so= urcecode is only affect to the printing of a CSV file, but has no no effect= on the parser. When I tried to parse a CSV file with a char which ASCII co= de less than '#' but more or equal than 0x20 without quoting it, I didn't f= ind any problem which the comment says. I still wondered in which case the = parser will fail in common cases. So for the time being, I am not reporting= that as a bug. was (Author: hongda): Thanks Gary. By the way, I even deleted the "if (c <=3D COMMENT) {" branch = to meet what the Microsoft Excel does in my job. But when I have read the c= omment under it, I am not sure if it is a bug or a feature. I think this so= urcecode is only affect to the printing of a CSV file, but has no no effect= on the parser. When I tried to parse a CSV file with a char which ASCII co= de less than '#' but more or equal than 0x20, I didn't find any problem whi= ch the comment says. I still wondered in which case the parser will fail in= common cases. So for the time being, I am not reporting that as a bug. > The behavior of quote char using is not similar as Excel does when the fi= rst string contains CJK char(s) > -------------------------------------------------------------------------= ------------------------------- > > Key: CSV-219 > URL: https://issues.apache.org/jira/browse/CSV-219 > Project: Commons CSV > Issue Type: Bug > Components: Printer > Affects Versions: 1.5 > Reporter: Zhang Hongda > Attachments: diff.patch > > > When using CSVFormat.EXCEL to print a CSV file, the behavior of quote cha= r using is not similar as Microsoft Excel does when the first string contai= ns Chinese, Japanese or Korean (CJK) char(s). > e.g. > There are 3 data members in a record, with Japanese chars: "=E3=81=82", "= =E3=81=84", "=E3=81=86": > Microsoft Excel outputs: > =E3=81=82,=E3=81=84,=E3=81=86 > Apache Common CSV outputs: > "=E3=81=82",=E3=81=84,=E3=81=86 -- This message was sent by Atlassian JIRA (v6.4.14#64029)