zaffudo / CAH-Generator

Cards Against Humanity Card Generator
GNU General Public License v3.0
64 stars 29 forks source link

French accents #3

Closed felixbrabant closed 8 years ago

felixbrabant commented 10 years ago

Accents (such as é è à ù - we use them a lot in french) are not displaying on the generated cards.

mlapaglia commented 9 years ago

ñ doesn't appear either.

Sinistral2099 commented 9 years ago

The post content needs to be utf-8 encoded similar to this:

htmlentities($_POST['text1'], ENT_QUOTES, "UTF-8");

aemitis commented 8 years ago

I have the same issue as I'm trying to write in Portuguese. Can anyone make this fix?

brunoamaral commented 8 years ago

I took a quick look at the code and this seems to be the solution as suggested by @mlapaglia https://github.com/brunoamaral/CAH-Generator/commit/e9f766a456827d4024c066ead266256e244418fd

It needs to be tested. If someone could give me feedback on whether this works I would appreciate it :)

zaffudo commented 8 years ago

Should hopefully be fixed in master, and on the live site.

aemitis commented 8 years ago

It's working correctly! Thanks!