I jus tested it again and it happens even without opening the file in an editor first. Would that be a bug then?
On Friday, April 8, 2016 at 10:23:43 AM UTC+2, Ramiro Morales wrote: > > It shouldn't. Are you sure you haven't opened and saved the json file with > a text editor that might be adding the BOM, e.g. Notepad before running > loaddata? > On Apr 7, 2016 9:17 PM, <[email protected] <javascript:>> wrote: > >> Opening the JSON file in Notepad++ certainly gives some insight... It >> says it's encoded in USC-2 LE BOM. Converting it to UTF-8 with BOM in >> Notepad++ solves the problem. >> >> Question though, why does dumpdata create files with an encoding that can >> not be used out of the box with loaddata? >> >> -- >> 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 [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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/b3f4fbbf-bcad-4376-8ed1-aa476b8c8a88%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/b3f4fbbf-bcad-4376-8ed1-aa476b8c8a88%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 [email protected]. To post to this group, send email to [email protected]. 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/313e069c-c719-42e6-9292-cf5bf9ab901d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

