INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MCWS PlayByFilename files with non English characters  (Read 1575 times)

g7807

  • Member
  • *
  • Posts: 4
MCWS PlayByFilename files with non English characters
« on: July 29, 2015, 03:46:21 am »

I can't add files which have non English names. The MCWS command works properly with files with English names. Should the names be converted to another format before added to the MCWS URL?

Thanks
Logged

g7807

  • Member
  • *
  • Posts: 4
Re: MCWS PlayByFilename files with non English characters
« Reply #1 on: July 30, 2015, 04:42:18 am »

Is the MCWS/PlayByFilename suppose to only add and play files that have English letters? Because if I execute the command mc20.exe /PlayReplace with a playlist which contains files with non English letters it does add and play them. I would like to remote control MC and therefore I need to use the MCWS interface. I am trying to play flac files, I did not try to play other formats using the MCWS.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10736
Re: MCWS PlayByFilename files with non English characters
« Reply #2 on: July 30, 2015, 04:46:01 am »

If the filename is UTF-8 encoded, I would think it should work.
Logged
~ nevcairiel
~ Author of LAV Filters

g7807

  • Member
  • *
  • Posts: 4
Re: MCWS PlayByFilename files with non English characters
« Reply #3 on: July 30, 2015, 05:11:48 am »

How could I know if it is encoded in UTF-8? For example I have a Hebrew flac file name בגלל.flac but it does not add this file to the playing list. I also tried other languages like Chinese and it behaves the same.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10736
Re: MCWS PlayByFilename files with non English characters
« Reply #4 on: July 30, 2015, 05:23:15 am »

You need to encode the filename as UTF-8 when passing it to MCWS.
Logged
~ nevcairiel
~ Author of LAV Filters

g7807

  • Member
  • *
  • Posts: 4
Re: MCWS PlayByFilename files with non English characters
« Reply #5 on: July 30, 2015, 05:29:39 am »

I am afraid that I don't know how to convert non English letters to UTF-8. Do you happen to have any code snippets or any link that shows how to do it.

Thank you
Logged
Pages: [1]   Go Up