Comments (11)
Original comment by [email protected]
on 30 Mar 2007 at 12:15
- Changed state: Accepted
from gdata-python-client.
Original comment by [email protected]
on 24 Apr 2007 at 5:19
- Changed state: New
from gdata-python-client.
Original comment by [email protected]
on 29 Jun 2007 at 6:13
- Added labels: Component-GData
from gdata-python-client.
This can be solved using <string>.encode('UTF-8'). Perhaps this should be added
to
the XML parsing, I'll have to think about it.
Original comment by [email protected]
on 6 Aug 2007 at 9:39
- Changed state: Started
from gdata-python-client.
I've added encode() calls to strings when they are converted from XML elements
to
members in revision 230.
Original comment by [email protected]
on 6 Dec 2007 at 8:55
- Changed state: Fixed
- Added labels: Component-ATOM, Milestone-Release1.0.10
- Removed labels: Component-GData
from gdata-python-client.
Hi, api.jscudder:
I am trying the "Hello World" example in the article 'Getting Started with the
Google
Data Python Library ', this issue is still feezing me when i execute the
statement
'documents_feed = client.GetDocumentListFeed()'. Could you investigate that
please?
Original comment by [email protected]
on 7 Jan 2008 at 11:43
from gdata-python-client.
Could you try revision 273? I just checked in a change which I think should fix
this.
Here is the diff for src/atom/__init__.py if you would rather apply a patch:
Index: __init__.py
===================================================================
--- __init__.py (revision 262)
+++ __init__.py (working copy)
@@ -44,7 +44,6 @@
__author__ = 'api.jscudder (Jeffrey Scudder)'
-
try:
from xml.etree import cElementTree as ElementTree
except ImportError:
@@ -90,7 +89,7 @@
if string_encoding:
tree = ElementTree.fromstring(xml_string.encode(string_encoding))
else:
- if XML_STRING_ENCODING:
+ if XML_STRING_ENCODING and isinstance(xml_string, unicode):
tree = ElementTree.fromstring(xml_string.encode(XML_STRING_ENCODING))
else:
tree = ElementTree.fromstring(xml_string)
Original comment by [email protected]
on 7 Jan 2008 at 6:43
from gdata-python-client.
Thanks for your work! The 'UnicodeEncodeError' has gone!
While the returned results are garbled code when i 'print
document_entry.title.text'. There are some docs in Chinese of my google docs,
you
know.
Original comment by [email protected]
on 8 Jan 2008 at 1:15
from gdata-python-client.
[deleted comment]
from gdata-python-client.
[deleted comment]
from gdata-python-client.
I researched the problem today and changed the following codes to solve it:
-----------------------------------------------------------------------
gdata/service.py
line 486: result_body = server_response.read().decode('utf-8')
atom/__init__.py
def CreateClassFromXMLString(target_class, xml_string):
tree = ElementTree.fromstring(xml_string)
return _CreateClassFromElementTree(target_class, tree)
def _HarvestElementTree(self, tree):
for child in tree:
self._ConvertElementTreeToMember(child)
for attribute, value in tree.attrib.iteritems():
self._ConvertElementAttributeToMember(attribute, value)
if tree.text:
self.text = tree.text
def _ConvertElementAttributeToMember(self, attribute, value):
if value:
self.extension_attributes[attribute] = value
----------------------------------------------------------------------
I modify the sources just to meet my purpose, hoping for some help to you.
Original comment by [email protected]
on 9 Jan 2008 at 1:09
from gdata-python-client.
Related Issues (20)
- Google Calendar API results depend incorrectly on the DST status HOT 1
- date issue HOT 1
- [ New Google Sheets]How can we get od? style worksheetid above "sheet2"? HOT 12
- If-Match or If-None-Match header or entry etag attribute required error while using batch update of contacts
- Doing a batched delete of contacts always returns "If-Match or If-None-Match header or entry etag attribute required" error HOT 14
- client.CreateUser(username, lastname, firstname, passwd, suspended=True) blows up
- Google Data broken link HOT 1
- Occasionaly SyntaxError using gdata-python to get worksheets feed HOT 1
- Atom.core not found
- someone is hacking my account HOT 1
- Patch for /ProposalJsonOnly.wiki HOT 1
- Internal Server Error on GetDocumentListFeed() HOT 1
- GetFeed() with limit value is failed due to 404, 'Not Found', 'Invalid entity id: 2&max-results=2
- Spreadsheet export cannot convert file to txt HOT 2
- Trying to change permissions of file with gdata api HOT 1
- No support for 2FA HOT 2
- Patch for /src/gdata/spreadsheet/text_db.py
- gdata problem with gcalcli HOT 1
- Project status needs updating. HOT 1
- The DeleteRow function results in the deletion of every other row when iterating through a ListFeed in a spreadsheet using python gdata in New Google Spreadsheets HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdata-python-client.