[Scilab-users] {EXT} Re: ?==?utf-8?q? SciNotes and printf("...\n")

Samuel Gougeon sgougeon at free.fr
Mon Apr 15 11:19:14 CEST 2019


Le 15/04/2019 à 11:01, P M a écrit :
> sorry... I pressed the "send" button accidently
>
>
> ...interesting.....so it is possible to  printf(" Unicode \n")      ?

Sure. (matrices of) strings and UTF-8 support are one of the big assets 
of Scilab.

>
> printf(<<...>>)  // creates an error as expected
>
> printf("<< ... >>") and printf(" ... ")     // doesn't change anything 
> compared to printf(" .. ")
>
> I probably misunderstand...

The input in your message are regular ascii characters. The difference 
is here:

--> printf("<< ... >>") // ascii
<< ... >>

--> printf("« … »")
« … »

--> s = "ScilabはUTF-8文字を受け入れます"
  s  =
  ScilabはUTF-8文字を受け入れます

--> printf(s)
ScilabはUTF-8文字を受け入れます

--> part(s,13:$)
  ans  =
  文字を受け入れます

-->




More information about the users mailing list