andyduke / styled_text_package

Text widget with formatted text using tags. Makes it easier to use formatted text in multilingual applications.
https://pub.dev/packages/styled_text
BSD 3-Clause "New" or "Revised" License
75 stars 48 forks source link

Apostrophe character not shown in my text #15

Closed Fabio-Paccosi closed 3 years ago

Fabio-Paccosi commented 3 years ago

When I try to show styled text I cannot see apostrophe character:

`StyledText( text: "Bell'articolo", TextAlign: TextAlign.left, style: ArticleTextStyle.getAbstractStyle(text_color: "#000000", font_size: 16), styles: { //Text styles 'u': ArticleTextStyle.getAbstractStyle(text_color: "#000000", font_size: 16, is_underline: true), 'b': ArticleTextStyle.getAbstractStyle(text_color: "#000000", font_size: 16, is_bold: true), 'i': ArticleTextStyle.getAbstractStyle(text_color: "#000000", font_size: 16, is_italic: true), }, )*

Return this: "bellarticolo"

When I use standard Flutter Text() class I see "Bell'articolo" correctly.

Have you ever encountered this problem?

Thanks

andyduke commented 3 years ago

@Fabio-Paccosi Some characters need to be escaped, see here - https://pub.dev/documentation/styled_text/latest/styled_text/StyledText/text.html

Fabio-Paccosi commented 3 years ago

Thank you! I can close this issue