0

I use zf2 with doctrine.

My problem:

echo $this->escapeHtml($myobj->__get('name'));

where 'name' is stored in mysql and contains an accent, like "automàtica", I obtain the correct "automàtica" string on the web.

But if I try:

echo $this->translate("àòùì")

I obtain:

����

Same result if I do not translate anything in the view:

<p>àòùì</p>

HTML:

<!DOCTYPE html>

<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

How I can resolve to view the correct "àòùì" witohut replace the utf8 letters with the code like é etc...?

Thanks in advance.

dev-chicco
  • 117
  • 2
  • 8

0 Answers0