unicode causes crash

Trying to play a video file with a unicode character (Korean) in the file name causes a crash. An image does not cause a crash. Remove the unicode and use english and the file plays.
Windows 10 64bit and OpenLp 2.1.6

Traceback (most recent call last):

File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\lib\mediamanageritem.py", line 490, in on_preview_click

File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\slidecontroller.py", line 779, in add_service_item

File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\slidecontroller.py", line 896, in _process_item

File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\slidecontroller.py", line 1359, in on_media_start

File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\media\mediacontroller.py", line 395, in video

File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\media\mediacontroller.py", line 533, in _check_file_type

File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\media\vlcplayer.py", line 199, in load

File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\media\vendor\vlc.py", line 1536, in media_new_path

File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\media\vendor\vlc.py", line 63, in str_to_bytes

UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character

Comments

Sign In or Register to comment.