mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 21:12:43 +01:00
enforced utf-8 encoding on imported files
This commit is contained in:
parent
2e18f84b38
commit
c59ca0fca1
2 changed files with 2 additions and 2 deletions
|
|
@ -958,7 +958,7 @@ def import_files(lib, paths, query):
|
|||
if config['import']['log'].get() is not None:
|
||||
logpath = syspath(config['import']['log'].as_filename())
|
||||
try:
|
||||
loghandler = logging.FileHandler(logpath)
|
||||
loghandler = logging.FileHandler(logpath, encoding='utf-8')
|
||||
except OSError:
|
||||
raise ui.UserError("could not open log file for writing: "
|
||||
"{}".format(displayable_path(logpath)))
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ Optional command flags:
|
|||
|
||||
Just point the ``beet import`` command at a directory of files that are
|
||||
already catalogged in your library. Beets will automatically detect this
|
||||
situation and avoid duplicating any items. In this situation, the "copy
|
||||
situation and avoid duplicating any items. A UTF-8 encoding will be enforced on your imported file. In this situation, the "copy
|
||||
files" option (``-c``/``-C`` on the command line or ``copy`` in the
|
||||
config file) has slightly different behavior: it causes files to be *moved*,
|
||||
rather than duplicated, if they're already in your library. (The same is
|
||||
|
|
|
|||
Loading…
Reference in a new issue