- From: Steven Atkin <atkin@us.ibm.com>
- Date: Wed, 10 Jun 2015 20:12:51 +0100
- To: Jeni Tennison <jeni@jenitennison.com>
- Cc: public-csv-wg@w3.org, www-international@w3.org
- Message-ID: <OF08E7815F.23A36FAA-ON80257E60.006984EE-80257E60.00698C4A@us.ibm.com>
These changes satisfy ISSUE-468.
Steven Atkin, Ph.D.
STSM - Chief Globalization Architect
IBM Globalization Center of Competency
atkin@us.ibm.com
http://www-3.ibm.com/software/globalization/index.jsp
From: Jeni Tennison <jeni@jenitennison.com>
To: www-international@w3.org, Steven Atkin/Austin/IBM@IBMUS
Cc: public-csv-wg@w3.org
Date: 06/10/2015 10:09 AM
Subject: Re: i18n-ISSUE-468: Do Unicode Strings get normalized when
placed into JSON data
Hi Steven,
Thank you for raising this issue which we turned into
https://github.com/w3c/csvw/issues/580
We have added text in the definition of the tabular data model (
http://w3c.github.io/csvw/syntax/#model) to make it clear that all string
values it contains are Unicode strings:
String values within the tabular data model (such as column titles or
cell string values)
MUST contain only Unicode characters.
We have also added text in step 5 of the non-normative parsing algorithm
for CSV at http://w3c.github.io/csvw/syntax/#parsing which describes how to
create a model from CSV and now says:
5. Read the file using the encoding, as specified in [encoding], using the
replacement
error mode. If the encoding is not a Unicode encoding, use a normalizing
transcoder
to normalize into Unicode Normal Form C as defined in [UAX15].
NOTE
The replacement error mode ensures that any non-Unicode characters
within the CSV
file are replaced by U+FFFD, ensuring that strings within the tabular
data model
such as column titles and cell string values only contain valid Unicode
characters.
We have added text to the JSON conversion document at
http://w3c.github.io/csvw/csv2json/#generating-json which says:
The [tabular-data-model] specifies that string values within tabular
data (such as
column titles or cell string values) must contain only Unicode
characters. No Unicode
normalization (as specified in [UAX15]) is applied to these string
values during the
conversion to JSON.
Please can you confirm that these changes satisfy this comment?
Thanks,
Jeni
--
Jeni Tennison
http://www.jenitennison.com/
On 1 June 2015 at 17:56:29, Steven Atkin (atkin@us.ibm.com) wrote:
>
>
> 4.5 Interpreting datatypes
> http://www.w3.org/TR/2015/WD-csv2json-20150416/#datatypes
>
> When strings are parsed from the CSV data are they first normalized
before
> being placed into JSON strings? For example, are the strings normalized
> into Unicode Normal Form C.
>
> It is recommended that text not be normalized if it is already in a
Unicode
> encoding. If the text is not in Unicode then a normalizing transcoder
> should be used and the Unicode Normal Form C should be used.
>
>
> Steven Atkin, Ph.D.
> STSM - Chief Globalization Architect
> IBM Globalization Center of Competency
> atkin@us.ibm.com
> http://www-3.ibm.com/software/globalization/index.jsp
Attachments
- image/gif attachment: graycol.gif
Received on Wednesday, 10 June 2015 19:14:53 UTC