[ 
https://issues.apache.org/jira/browse/AVRO-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16061260#comment-16061260
 ] 

ASF GitHub Bot commented on AVRO-1191:
--------------------------------------

GitHub user JamesAdams800 opened a pull request:

    https://github.com/apache/avro/pull/233

    AVRO 1191: Fix C++ JSON Encoder to use /u escape sequence

    Proposed fix to [1191](https://issues.apache.org/jira/browse/AVRO-1191).

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/JamesAdams800/avro Avro-1191

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/avro/pull/233.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #233
    
----
commit 49ddc8938e3268166a41f100269b93e7e3da652e
Author: JamesAdams800 <[email protected]>
Date:   2017-06-23T17:23:42Z

    AVRO 1191: Fix C++ JSON Encoder to use /u escape sequence

----


> C++ json encoder uses \U instead of \u
> --------------------------------------
>
>                 Key: AVRO-1191
>                 URL: https://issues.apache.org/jira/browse/AVRO-1191
>             Project: Avro
>          Issue Type: Bug
>          Components: c++
>    Affects Versions: 1.7.0
>            Reporter: Keh-Li Sheng
>
> From the JSON spec http://www.ietf.org/rfc/rfc4627.txt:
> {quote}
> 2.5.  Strings
>    The representation of strings is similar to conventions used in the C
>    family of programming languages.  A string begins and ends with
>    quotation marks.  All Unicode characters may be placed within the
>    quotation marks except for the characters that must be escaped:
>    quotation mark, reverse solidus, and the control characters (U+0000
>    through U+001F).
>    Any character may be escaped.  If the character is in the Basic
>    Multilingual Plane (U+0000 through U+FFFF), then it may be
>    represented as a six-character sequence: a reverse solidus, followed
>    by the lowercase letter u, followed by four hexadecimal digits that
>    encode the character's code point.  The hexadecimal letters A though
>    F can be upper or lowercase.  So, for example, a string containing
>    only a single reverse solidus character may be represented as
>    "\u005C".
> {quote}
> But JsonCodec.cc outputs \U



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to