Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1086)

Issue 12377043: Only decode JSON as utf-8. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by jcgregorio_google
Modified:
11 years, 2 months ago
Reviewers:
dhermes
CC:
google-api-python-client_googlegroups.com
Visibility:
Public.

Description

Only decode JSON as utf-8.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M apiclient/model.py View 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 5
jcgregorio_google
11 years, 2 months ago (2013-08-02 20:54:49 UTC) #1
dhermes
What change introduced this regression? How does moving it to deserialize help?
11 years, 2 months ago (2013-08-02 21:00:37 UTC) #2
jcgregorio_google
On Fri, Aug 2, 2013 at 5:00 PM, <dhermes@google.com> wrote: > What change introduced this ...
11 years, 2 months ago (2013-08-02 21:08:10 UTC) #3
dhermes
Ahhh! Of course, deserialize works differently for different models. LGTM On Fri, Aug 2, 2013 ...
11 years, 2 months ago (2013-08-02 21:21:13 UTC) #4
jcgregorio_google
11 years, 2 months ago (2013-08-02 21:22:39 UTC) #5
Committed in
https://code.google.com/p/google-api-python-client/source/detail?r=e0a759d1c8...

On 2013/08/02 21:21:13, dhermes wrote:
> Ahhh! Of course, deserialize works differently for different models.
> 
> LGTM
> 
> 
> On Fri, Aug 2, 2013 at 2:07 PM, Joe Gregorio <mailto:jcgregorio@google.com>
wrote:
> 
> >
> >
> >
> > On Fri, Aug 2, 2013 at 5:00 PM, <mailto:dhermes@google.com> wrote:
> >
> >> What change introduced this regression?
> >>
> >
> > We were running into bugs with some JSON parsers that didn't convert
> > the string to unicode themselves and would choke on some input.
> >
> >
> >> How does moving it to deserialize help?
> >>
> >
> > Converting the string to unicode is the wrong thing to do
> > if you have a protocol buffer model, this change
> > moves it to JsonModel.deserialize() where it should
> > have been from the beginning.
> >
> >
> >>
> >>
>
https://codereview.appspot.**com/12377043/%3Chttps://codereview.appspot.com/1...>
> >>
> >
> >
> 
> 
> -- 
> Danny Hermes
> Developer Programs Engineer
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b