[Scilab-users] Handling of special characters like °

JLan j-lan at online.no
Sat May 27 10:20:48 CEST 2017


Is there a good explanation for this behavior? It is of course possible to
work around it, but the extra character has caused me some unwanted shifts
in strings. 

--> d=ascii('°')
 d  = 
   194.   176.
--> ascii(d(1))
 ans  =
 Â
--> ascii(d(2))
 ans  =
 °
--> ascii(d)
 ans  =
 °
--> ascii(d(1))+ascii(d(2))
 ans  =
 °
--> ascii([194 176])
 ans  =
 °
--> ascii([194 194])
 ans  =
 ÂÂ
-->ascii(ascii(176))
 ans  =
   194.   176.

Brgds Jan



--
View this message in context: http://mailinglists.scilab.org/Handling-of-special-characters-like-tp4036459.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list