cguZZman / plugin.googledrive

The Google Drive addon for Kodi
GNU General Public License v3.0
212 stars 72 forks source link

Unknown error: 'ascii' codec can't encode characters in position #243

Closed xatier closed 3 years ago

xatier commented 3 years ago

Describe the bug It seems like this plugin is not able to fetch the title correctly when opening the videos. The titles display correctly in directory listing, but the player refuses to start due to the encoding issue. I suspect this is due to Python3 upgrade in Kodi, we may need to add some .encode('utf8') when feeding the video titles into Kodi player.

To Reproduce Steps to reproduce the behavior:

  1. Go to some drive folders
  2. Click on videos that has non ascii titles (e.g. Japanese)
  3. See the error in the dialog

Screenshots If applicable, add screenshots to help explain your problem.

+-- Google drive ----------------------------------------------------------+
| Unknown error:                                                           |
| 'ascii' codec can't encode characters in position xx-xx:                 |
| ordinal not in range(128)                                                |
| Please try again                                                         |
+--------------------------------------------------------------------------+
cguZZman commented 3 years ago

Without the debug log file there is nothing I can do to help.