[prev in list] [next in list] [prev in thread] [next in thread] 

List:       avro-dev
Subject:    [jira] [Created] (AVRO-1593) C++ json encoder assumes "C" locale and generates invalid UTF-8 sequenc
From:       "Hatem Helal (JIRA)" <jira () apache ! org>
Date:       2014-10-10 10:33:34
Message-ID: JIRA.12747256.1412937179000.236509.1412937214351 () Atlassian ! JIRA
[Download RAW message or body]

Hatem Helal created AVRO-1593:
---------------------------------

             Summary: C++ json encoder assumes "C" locale and generates invalid UTF-8 \
sequence   Key: AVRO-1593
                 URL: https://issues.apache.org/jira/browse/AVRO-1593
             Project: Avro
          Issue Type: Bug
          Components: c++
         Environment: windows-1252 encoding
            Reporter: Hatem Helal
            Priority: Critical


encoding a multibyte UTF-8 code point such as:

"\xEF\xBD\x81"

Incorrectly becomes:

"\xEF\xBD\U0081"

When encoded in the service running in the windows-1252 locale.  This isn št a valid \
UTF-8 sequence so we end up with Mojibake when reading back the JSON encoded string.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic