sending 'é' by osc gives me bogus String

Dec 4, 2013 at 6:56am

sending 'é' by osc gives me bogus String

hello !
I try to send users names to one computer to another via osc in maxmsp.
for instance user: étienne gives BOGUS STRING !!!
how could I format the string to retrieve étienne wrote correctly ?
thanks
here’s the patch to show the problem:
I’m on mac.
<code>

– Pasted Max Patch, click to expand. –

</code>

#274694
Dec 4, 2013 at 9:41am

How about this?

<code>

– Pasted Max Patch, click to expand. –

</code>

#274711
Dec 4, 2013 at 11:05am

You don’t need the fromsymbol/tosymbol thing. If you don’t need full OSC packets, the updsend/updreceive works fine.

<code>

– Pasted Max Patch, click to expand. –

</code>

#274724
Dec 5, 2013 at 8:19am

thanks !
still don’t really understand why it doesn’t work with osc…I guess I don’t know osc so much

#274842
Dec 5, 2013 at 8:39am

Surely somewhere something doesn’t manage UTF-8 (or such) characters.
According to the site, OSC format itself is bound to ASCII characters ( http://opensoundcontrol.org/spec-1_0 ).

“A sequence of non-null ASCII characters followed by a null, followed by 0-3 additional null characters to make the total number of bits a multiple of 32.”

Anyway that’s always a good practice limiting strings to ASCII printable characters ( http://web.cs.mun.ca/~michael/c/ascii-table.html ).

#274849

You must be logged in to reply to this topic.