Hi,
See example below of wrong quotes and of a site to check their encoding: // http://asciivalue.com/ // Wrong quotes: // Char Dec Hex Oct // " 148 94 224 // Right quotes: // Char Dec Hex Oct // " 34 22 42 // Scilab code: printf("Wrong quotes: "\n") printf("Right quotes: '"\n") SciNotes Find/Replace can be used to replace all. Regards, Rafael -----Original Message----- From: users [mailto:[email protected]] On Behalf Of Claus Futtrup Sent: Saturday, September 09, 2017 7:04 AM To: [email protected] Subject: Re: [Scilab-users] Scilab 6 problem with "Prettify" Hi Samuel I wonder in which way I as a user is supposed to find a wrongly encoded quote. I again copied the original code to an editor and studied the HEX code. All (single-) quotes have HEX code 27. When I save the .sce file to disk, the information in the file contains nothing outside the ordinary. Yet, when I reopened this file in Scilab 6 (many times) then each time, the problem would be the same. Scilab 5 has no problems. To me it doesn't sound like a problem with the TEXT file, but a problem inside Scilab 6 editor + parser. Best regards, Claus On 08-09-2017 22:06, Samuel Gougeon wrote: > Le 08/09/2017 à 21:07, Claus Futtrup a écrit : >> Hi Pierre, et al. >> >> I was able to resolve the problem with the Prettify code by changing >> ' to " in the code for default_options. >> >> I have no idea why this should matter. > > As explained in a previous message, this confirms that quotes were > wrongly encoded. > You can put back some single quotes but from your keyboard. They will > pass the parser. > > Cheers > Samuel
_______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users
