How to send special characters from Max/MSP to Processing?
in
Contributed Library Questions
•
1 year ago
Hi,
I am trying to do something as simple as sending a message, which may contain special characters (e.g. "á", "à", "ão", "ões", ...) from Max/MSP to Processing.
In Max/MSP I am using the object "udpsend" and in Processing the "OscP5" object.
I have no trouble receiving normal characters (those inside the ASCII values, I suppose) with no problem. The real problem is when sending a special char like those mentioned above, which I can't read in Processing. Sending something like "ão" from Max/MSP gives me "??o" in Processing.
I have no problem sending a message with special characters from a Max patch to another one.
I have googled extensively for this issue, but haven't found any solution. What am I missing here?
Thanks for your time.
- import oscP5.*;
- import netP5.*;
- OscP5 oscP5;
- void setup() {
- oscP5 = new OscP5(this, 6000);
- }
- void draw() {
- background(0);
- }
- void oscEvent(OscMessage msg) {
- msg.print();
- }
1