home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
EventGhostPlus
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="wawa79" data-source="post: 1108103" data-attributes="member: 85529"><p>Hello,</p><p></p><p>I am having some trouble with character set in the UNICODE payload of the message sent to Eventghost: when MP plays a file which name contains extended caracters, the filename in the payload is displayed incorrectly in Eventghost (or sent incorrectly by EventghostPlus: I don't know which must be blamed :-D )</p><p></p><p>Example of message received by Eventghost from EventghostPlus:</p><p>TCP.MediaPortal.Music.Play ['192.168.0.1', u'\\\\DISQUERESEAU\\Nos documents\\Nos musiques\\Julien Dor?\\Bichon\\06 - Julien Dor? - Laisse Avril.flac', u'Pop/Rock', u'']</p><p></p><p>Orignal name of the file being played (see accented characters): </p><p>\\DISQUERESEAU\Nos documents\Nos musiques\Julien Doré\Bichon\06 - Julien Doré - Laisse Avril.flac</p><p></p><p>In Pythin script, I tried:</p><p>[code]</p><p>print eg.event.payload[1]</p><p>print eg.event.payload[1].encode('utf-8');</p><p>...</p><p>[/code]</p><p></p><p>They all return the same:</p><p> \\DISQUERESEAU\Nos documents\Nos musiques\Julien Dor?\Bichon\08 - Julien Dor? - Glenn Close.flac</p><p></p><p>My knowledge of Python and unicode / character set is quite weak: can anyone help?</p></blockquote><p></p>
[QUOTE="wawa79, post: 1108103, member: 85529"] Hello, I am having some trouble with character set in the UNICODE payload of the message sent to Eventghost: when MP plays a file which name contains extended caracters, the filename in the payload is displayed incorrectly in Eventghost (or sent incorrectly by EventghostPlus: I don't know which must be blamed :-D ) Example of message received by Eventghost from EventghostPlus: TCP.MediaPortal.Music.Play ['192.168.0.1', u'\\\\DISQUERESEAU\\Nos documents\\Nos musiques\\Julien Dor?\\Bichon\\06 - Julien Dor? - Laisse Avril.flac', u'Pop/Rock', u''] Orignal name of the file being played (see accented characters): \\DISQUERESEAU\Nos documents\Nos musiques\Julien Doré\Bichon\06 - Julien Doré - Laisse Avril.flac In Pythin script, I tried: [code] print eg.event.payload[1] print eg.event.payload[1].encode('utf-8'); ... [/code] They all return the same: \\DISQUERESEAU\Nos documents\Nos musiques\Julien Dor?\Bichon\08 - Julien Dor? - Glenn Close.flac My knowledge of Python and unicode / character set is quite weak: can anyone help? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
EventGhostPlus
Contact us
RSS
Top
Bottom