Is it possible to have a string constant (output datatype: string) generated in UTF-8?
"Simulink strings support 256 characters of the ISO/IEC 8859-1 character set" according to Simulink Strings in the Help Center.
I’ve created a "string constant" block called "String ãºç" in a simulink model where I’ve inserted the value "exampleàñçº".
The block’s name is exported correctly in UTF-8 ("String ãºç"), but what I get in the exported file for the value is "example340361347272" (octal values for extended characters in ISO/IEC 8859-1).
I was wondering if there was a way to export the string value in UTF-8."Simulink strings support 256 characters of the ISO/IEC 8859-1 character set" according to Simulink Strings in the Help Center.
I’ve created a "string constant" block called "String ãºç" in a simulink model where I’ve inserted the value "exampleàñçº".
The block’s name is exported correctly in UTF-8 ("String ãºç"), but what I get in the exported file for the value is "example340361347272" (octal values for extended characters in ISO/IEC 8859-1).
I was wondering if there was a way to export the string value in UTF-8. "Simulink strings support 256 characters of the ISO/IEC 8859-1 character set" according to Simulink Strings in the Help Center.
I’ve created a "string constant" block called "String ãºç" in a simulink model where I’ve inserted the value "exampleàñçº".
The block’s name is exported correctly in UTF-8 ("String ãºç"), but what I get in the exported file for the value is "example340361347272" (octal values for extended characters in ISO/IEC 8859-1).
I was wondering if there was a way to export the string value in UTF-8. block parameters, simulink, simulink coder, matlab coder, embedded coder, string, datatype, string constant, model configuration, encoding, latin-1, iso/iec 8859-1, utf-8, unicode MATLAB Answers — New Questions