Led Machine
Led Machine

Reputation: 7552

How to display characer '¿' on Label with React-Native?

For some reason when I try to display this character in a React-Native Android App, it display other character.

This is how it looks like. enter image description here

This is my code.

<Text style={{ fontFamily: 'Cochin'}}>¿Existio presencia y/o parte policial?</Text>

Is this a problem of the Font, or character encoding, how to solve?

Upvotes: 0

Views: 169

Answers (1)

tuan.tran
tuan.tran

Reputation: 1881

In simplest way, you can use unicode character to display inverse question mark

<Text style={{ fontFamily: 'Cochin'}}>"\u00BF Existio presencia y/o parte policial?"</Text>

Upvotes: 1

Related Questions