oscP5 + foreign characters in msg
in
Contributed Library Questions
•
2 months ago
Hi,
I am trying to send a message using oscP5 from one sketch to the other. When I use latin characters the text appears fine on the other machine. When I use greek characters it arrives all mangled up.
I send the msg as follows:
and I run:
text(searchTerm, 20,20);
that it comes out scrambled. As if the transferring of the message via oscP5 is messing it up. I noticed someone else having trouble with chinese as well.
Any ideas? Suggestions?
Much appreciated.
I am trying to send a message using oscP5 from one sketch to the other. When I use latin characters the text appears fine on the other machine. When I use greek characters it arrives all mangled up.
I send the msg as follows:
- OscMessage myMessage = new OscMessage("/test");
- myMessage.add("αβγδ");
- oscP5.send(myMessage, myRemoteLocation);
- void oscEvent(OscMessage theOscMessage)
- {
- searchTerm=theOscMessage.get(0).stringValue();
- }
and I run:
text(searchTerm, 20,20);
that it comes out scrambled. As if the transferring of the message via oscP5 is messing it up. I noticed someone else having trouble with chinese as well.
Any ideas? Suggestions?
Much appreciated.
1