input(msg, "string") does not support correctly UTF-8 inputs
Reported by Stéphanie Lescarret
-- Bug description --
When I declare a string in the Scilab Command Window whith accent like :
-->S = 'ôpéra'
S =
ôpéra
When i ask for its length :
-->length(S)
ans =
7.
When I declare the same string from a script :
-->S
S =
ôpéra
But when i ask its length :
-->length(S)
ans =
5.
It seems to be a problem on the command window. I've also found that when you respond to an input with a string with an accent, there's a problem.
-->x = input('Your name ?', 'string')
Your name ?: Gaëlle
x =
Ga
-- Scilab error message --
-- How to reproduce the bug --