diff --git a/http-web-services.html b/http-web-services.html index fc6c2d2..c9e89d3 100755 --- a/http-web-services.html +++ b/http-web-services.html @@ -398,7 +398,7 @@ Writing /usr/local/lib/python3.1/dist-packages/httplib2-python3_0.5.0.egg-info
charset parameter of the Content-Type HTTP header, or
encoding attribute of the XML declaration within the document, or
-utf-8
+On the other hand, if the media type given in the Content-Type HTTP header is text/xml, text/xml-external-parsed-entity, or a subtype like text/AnythingAtAll+xml, then the encoding attribute of the XML declaration within the document is ignored completely, and the encoding is
@@ -884,7 +884,7 @@ status=Test+update+from+Python+3'
</user>
</status>
httplib2 is always bytes, not a string. To convert it to a string, you need to decode it using the proper character encoding. Identi.ca’s API always returns results in UTF-8, so that part is easy.
+httplib2 is always bytes, not a string. To convert it to a string, you need to decode it using the proper character encoding. Identi.ca’s API always returns results in UTF-8, so that part is easy.