Page 1 of 1

"Send to" path encoding error

PostPosted: Sun Aug 07, 2016 6:54 pm
by mm98

I have previously used a specific folder on my NAS (\Multimedia\TV Recordings) for "Send to" setup. These will suddenly result in an error, and I can't select the specific folder anymore (marked red when selecting).
I have checked permissions on the folder, and they are correct.

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128)

Code: Select all
[07/Aug/2016:19:48:02] DVB.CMN.SSD Get directory "share:CACHEDEV1_DATA:Multimedia:TV Recordings".
[07/Aug/2016:19:48:02] HTTP
Request Headers:
  COOKIE: dlg.dvblink-player=true; l=eng; r=640x480; b=512; dt=true; usevlchide=true; cfg_extend=true; dvb_sources_new_ignore=tv; swipe=false;; frmt.time=HH%3Amm; _ga=GA1.1.1970963443.1467446799; remeber=1; qtoken_account=Y2Fyc3Rlbg==; qtoken=12762563d0b6536aa7b52c98d08e85ce; nas_lang=ENG
  ORIGIN: http://qnap:39876
  Content-Length: 56
  USER-AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
  CONNECTION: keep-alive
  REFERER: http://qnap:39876/s/sendto/
  DNT: 1
  HOST: qnap:39876
  ACCEPT: application/json, text/javascript, */*; q=0.01
  ACCEPT-LANGUAGE: da,en-US;q=0.8,en;q=0.6
  Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  ACCEPT-ENCODING: gzip, deflate
[07/Aug/2016:19:48:02] HTTP Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/DVBLinkTVServer/web_server/", line 645, in respond
    response.body = self.handler()
  File "/share/CACHEDEV1_DATA/.qpkg/DVBLinkTVServer/web_server/", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/share/CACHEDEV1_DATA/.qpkg/DVBLinkTVServer/web_server/", line 61, in json_handler
    value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)
  File "/share/CACHEDEV1_DATA/.qpkg/DVBLinkTVServer/web_server/", line 29, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "", line 79, in getpath
  File "C:\Python26\lib\", line 70, in join
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128)

Re: "Send to" path encoding error

PostPosted: Mon Aug 08, 2016 8:55 am
by mm98
Extra info
The error could possible come from the content of the folder, since the filenames should be shown in the directory selector.

I can confirm that the reason for this error, is the naming "Düné" (special characters). If i rename it to "Dune", Send To directory selection is working. Might be a solution to use UTF-8 encoding.

Re: "Send to" path encoding error

PostPosted: Tue Aug 09, 2016 2:42 pm
by the_man
Thank you for investigation, we will add this issue into our todo list.

Re: "Send to" path encoding error

PostPosted: Fri Aug 12, 2016 8:03 am
by mm98
"Send To" feature is actually completely unusable because of this. I'm from Denmark, and we have special characters in almost every program name.
Example: When the first program has been copied/transcoded to the desired folder, the following programs/schedules will result in a error in WebUI > Settings > Send To window.