-
Notifications
You must be signed in to change notification settings - Fork 16k
Closed
Description
I have the following specification
Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "api.Mutation" do
optional :set_json, :bytes, 1
end
end
Mutation = Google::Protobuf::DescriptorPool.generated_pool.lookup("api.Mutation").msgclassWhen I try to set a UTF-8 string like this Api::Mutation.new(set_json: 'Möp') it fails with ``initialize': U+00F6 from UTF-8 to ASCII-8BIT (Encoding::UndefinedConversionError)`.
Is this not supported or is it a bug? From what I have read, UTF-8 and ASCII Input should be fine for bytes.