Re: Running tracker import with Python3 crashes with utf-8 error

Joseph Myers <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
On Thu, 14 Mar 2019, John P. Rouillard wrote:

> should I be getting 'binary_content' for every file rather than
> 'content' at ** 1 ** and handle the conversion in hyperdb? Is the
> whole purpose of binary_content to allow passing through the data in a
> file unmolested?

Yes.  You should always get binary_content unless you already know that 
the content is text and want to handle it as text (the typical case for 
that would be e.g. the msg class in the classic schema).

-- 
Joseph S. Myers
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.