Author Topic: Character encoding for external app.  (Read 2836 times)

butty

  • Sr. Member
  • ****
  • Posts: 435
Hello,

Is it possible to make the character encoding of the arguments to external application UTF-8?
Currently, it seems that the encoding is Windows local encoding, such as "Shift_JIS."

Regards.

butty

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34416
musicbee sends the parameters in unicode. Are you sure its not receiving program at fault?
some older programs get the parameter as 8 bit characters
Last Edit: August 01, 2011, 08:15:18 PM by Steven

butty

  • Sr. Member
  • ****
  • Posts: 435
Umm.

Receiving progmram is PHP. I don't think this is a problem.
When I use cmd.exe, parameter's encoding is still local encoding (in Japan, Shift_JIS or CP932).

ex.
MB->Tools->external application
  application path: C:\Windows\System32\cmd.exe
  parameters: /c d:\temp\test.bat "<Artist>" "<Title>"

-> test.bat is passed params in Shift_JIS, not in UTF-8.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34416
once you start using cmd.exe or batch files then (to the best of my knowledge) windows only supports the active codepage and doesnt process the command line parameters as unicode text.
it should work if you can directly call the external app .exe file from musicbee rather than doing it via a batch file (i did a test to confirm it does work this way)