Loading docs/howto/outputting-csv.txt +13 −14 Original line number Diff line number Diff line Loading @@ -54,13 +54,12 @@ mention: about escaping strings with quotes or commas in them. Just pass ``writerow()`` your raw strings, and it'll do the right thing. Handling Unicode ~~~~~~~~~~~~~~~~ .. admonition:: Handling Unicode on Python 2 Python's :mod:`csv` module does not support Unicode input. Since Django uses Unicode internally this means strings read from sources such as :class:`~django.http.HttpRequest` are potentially problematic. There are a few options for handling this: Python 2's :mod:`csv` module does not support Unicode input. Since Django uses Unicode internally this means strings read from sources such as :class:`~django.http.HttpRequest` are potentially problematic. There are a few options for handling this: * Manually encode all Unicode objects to a compatible encoding. Loading @@ -72,7 +71,7 @@ options for handling this: For more information, see the Python documentation of the :mod:`csv` module. .. _`csv module's examples section`: http://docs.python.org/library/csv.html#examples .. _`csv module's examples section`: http://docs.python.org/2/library/csv.html#examples .. _`python-unicodecsv module`: https://github.com/jdunck/python-unicodecsv .. _streaming-csv-files: Loading Loading
docs/howto/outputting-csv.txt +13 −14 Original line number Diff line number Diff line Loading @@ -54,13 +54,12 @@ mention: about escaping strings with quotes or commas in them. Just pass ``writerow()`` your raw strings, and it'll do the right thing. Handling Unicode ~~~~~~~~~~~~~~~~ .. admonition:: Handling Unicode on Python 2 Python's :mod:`csv` module does not support Unicode input. Since Django uses Unicode internally this means strings read from sources such as :class:`~django.http.HttpRequest` are potentially problematic. There are a few options for handling this: Python 2's :mod:`csv` module does not support Unicode input. Since Django uses Unicode internally this means strings read from sources such as :class:`~django.http.HttpRequest` are potentially problematic. There are a few options for handling this: * Manually encode all Unicode objects to a compatible encoding. Loading @@ -72,7 +71,7 @@ options for handling this: For more information, see the Python documentation of the :mod:`csv` module. .. _`csv module's examples section`: http://docs.python.org/library/csv.html#examples .. _`csv module's examples section`: http://docs.python.org/2/library/csv.html#examples .. _`python-unicodecsv module`: https://github.com/jdunck/python-unicodecsv .. _streaming-csv-files: Loading