Code Monkey home page Code Monkey logo

Comments (6)

tikismoke avatar tikismoke commented on July 28, 2024

Fritz. Talk about adding a 'u' everywhere a string is used....

from domogik-plugin-notify.

tikismoke avatar tikismoke commented on July 28, 2024

pour le plugin, suffit de rajouter des u devant chaque chaîne
"foo" => u"foo"

from domogik-plugin-notify.

Nico0084 avatar Nico0084 commented on July 28, 2024

Pas sûr que ça suffise.
Au moment du développement. (Y a 10 mois ) les caractères étendus Utf8 ne
passaient pas la passerelle free
A revérifier si maintenant ça passe ?
Le 29 nov. 2015 21:41, "tikismoke" [email protected] a écrit :

pour le plugin, suffit de rajouter des u devant chaque chaîne
"foo" => u"foo"


Reply to this email directly or view it on GitHub
#2 (comment)
.

from domogik-plugin-notify.

Nico0084 avatar Nico0084 commented on July 28, 2024

There is no plugin solution, It's a xplgw issue.
Message.str() fail on unicode encoding

Reporte this issue to domogik side.
In 0.5 we could forget xpl. A direct command will be add by mq.

2015-11-30 23:12:39,924 domogik-xplgw DEBUG MQ Request received : '<'MQMessage(action=cmd.send, data='{u'cmdid': 50, u'cmdparams': {u'body': u'testing\xe9'}}')'>'
2015-11-30 23:12:39,926 domogik-xplgw INFO Received new cmd request: '<'MQMessage(action=cmd.send, data='{u'cmdid': 50, u'cmdparams': {u'body': u'testing\xe9'}}')'>'
2015-11-30 23:12:40,532 domogik-xplgw DEBUG Command parameter after conversion body = testingé
2015-11-30 23:12:40,541 domogik-xplgw DEBUG Sending xplmessage: xpl-cmnd
{
hop=1
source=domogik-xplgw.vmdomogik0
target=domogik-notify.vmdomogik0
}
sendmsg.basic
{
to=06xxxxxxxx
body=testingé
}

2015-11-30 23:12:40,544 domogik-xplgw DEBUG normal send
2015-11-30 23:12:40,547 domogik-xplgw WARNING Error during send of message
2015-11-30 23:12:40,569 domogik-xplgw DEBUG Traceback (most recent call last):
File "/home/admdomo/domogik/src/domogik/xpl/common/xplconnector.py", line 311, in send
self._UDPSock.sendto(message.str(), (self._broadcast, 3865))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 126: ordinal not in range(128)

2015-11-30 23:12:40,586 domogik-xplgw DEBUG mq reply (success) : ['cmd.send.result', '{"status": true, "reason": null, "uuid": "26dd752b-c045-4ba7-97b2-4524187362c7"}']
2015-11-30 23:12:42,198 domogik-xplgw DEBUG Send client status : alive

from domogik-plugin-notify.

Nico0084 avatar Nico0084 commented on July 28, 2024

Fixed in Commits on Sep 9, 2016 :)

from domogik-plugin-notify.

tikismoke avatar tikismoke commented on July 28, 2024

Need to look closely for nabaztag/karotz as they are a copy/paste if most of this code.

Thank's nico

from domogik-plugin-notify.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.