r/web_programming • • Apr 13 '17

Php Gettext German ü and other tekst

Hi Redditers,

I've build a mo, po generator in php. I save a bunch of text in the db to generate the mo po. the user can update the database and after updating the database the mo and po are generated.

Everything is UTF-8 and is working till i met ü ä etc.

Is there a way to convert the string to an other charactors that the mo and po wil use? Like htmlspecialchar or something like that. I can't find anything about it online.

4 Upvotes

1 comment sorted by

3

u/DaarGaJeDan Apr 13 '17

Sorry found my problem, i had a new server installed and the locale de_DE.utf8 wasn't installed.

Topic can be closed.