maca/ruby-osc — Issue #4: Incorrect encoding with ruby 1.9
Author: nougad
Created: 2012-01-02 17:16:10+00:00
State: open

ruby 1.8:

>> "Ö".size
=> 2
>> "Ö".bytesize
=> 2

ruby 1.9:

>> "Ö".bytesize
=> 2
>> "Ö".size
=> 1

so...:

ruby 1.8:

>> OSC.encoding_directive "Ö"
=> ["\303\226", "s", "Z*x1"]

ruby 1.9:

>> OSC.encoding_directive "Ö"
=> ["Ö", "s", "Z*x2"]