devdave / pybass3

A ctypes wrapper around the BASS audio library by un4seen.com
MIT License
10 stars 3 forks source link

UTF-8 Encoding Error #6

Closed TimurALTron closed 6 months ago

TimurALTron commented 1 year ago

"When I try to load an Mp3 file with Cyrillic characters in it, pybass3 throws an error: (File "C:\Users\Timur.DESKTOP-2L5QR16\AppData\Local\pypoetry\Cache\virtualenvs\mp3player-UtlQRSiP-py3.10\lib\site-packages\pybass3\song.py", line 65, in _create_stream self._handle = BassStream.CreateFile(False, self.file_path.as_posix().encode("Windows-1252")) File "C:\Users\Timur.DESKTOP-2L5QR16\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 12, in encode return codecs.charmap_encode(input, errors, encoding_table) UnicodeEncodeError: 'charmap' codec can't encode characters in position 41-47: character maps to )"

devdave commented 11 months ago

Can you paste the Cyrillic text here in the comments? I need to test a couple different encodings to find a better universal one.

devdave commented 6 months ago

I am closing this for now until I can get the requested test data from you.