Hi.

Maybe it would be useful to create ticket to document this behavior in
Django documentation.

6.11.2017 8.21 ip. "Matthijs Kooijman" <matth...@stdin.nl> kirjoitti:

> Hey folks,
>
> I'm replying to an old thread about a problem with "manage.py loaddata"
> generating a BOM (byte-order-mark) that "manage.py dumpdata" refuses to
> load. I just ran into this same problem and found that, in my case, the
> problem is not "loaddata", but powershell which I was running under.
> Apparently powershell adds a BOM when redirecting output. For example, a
> simple "echo foo > somefile" also adds a BOM. Seeing the original poster
> was also using Windows, perhaps he was also using powershell (the regular
> Windows cmd.exe does not seem to have this behaviour).
>
> For me, the solution was to just use a different shell, or use the
> "--output" option to dumpdata.
>
> Gr.
>
> Matthijs
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/227a6a31-4256-49a8-a11b-704b26d58dd3%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/227a6a31-4256-49a8-a11b-704b26d58dd3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91oeAM16pmqL3-Nwxo4rytVGJ85_6KLjxb1RJuy5-wPcqrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to