minhtranite / react-modal-bootstrap

Modal component for React with bootstrap style.
https://www.npmjs.com/package/react-modal-bootstrap
36 stars 15 forks source link

Charater encoding issue in the modal. #9

Open saranshbansal opened 7 years ago

saranshbansal commented 7 years ago

Somehow I'm getting this encoding issue on 'cross' button on the modal's header. I've tried fixing headers for utf-8 encoding but it doesn't work. I can't modify the js to render ascii code instead. Please help in resolving this issue.

I'm fairly new to react and I couldn't find a way to fix encoding issues in React apart from fixing my application's headers. image

georgetroughton commented 6 years ago

In your html head make sure you have

<meta charset="UTF-8">

This fixed it for me.