dev1234
dev1234

Reputation: 5716

translation issue in php

I have done everything that is needed to translation. only issue is this word is not getting translated properly,

L’équipe

is not getting translated properly, instead of it i am getting L?équipe with a question mark which i dont understand how.

This is how the code is written.

$body = mb_convert_encoding(Yii::t('site', TK::getStringBetween($data->body, "{body}", "{/body}")), 'ISO-8859-15', 'utf-8'); // to avoid é becomes é

Upvotes: 0

Views: 49

Answers (1)

Evgeniy Chekan
Evgeniy Chekan

Reputation: 2665

It looks like your 'qelasy' dictionary is stored in proper utf-8 encoding.

Try to not convert encoding.

Upvotes: 1

Related Questions