Frage

Live site- http://www.mzuri.co.mz/signage.php

This page contains Portugage language, a lot of Character disappear on that page. There are a lot of symbols when it goes to portuguese translation (eg: ós fazemos os serviços)..

Real word- "Sinalização" but on my website is show "Sinalização".

Any idea how to fix that issue.

War es hilfreich?

Lösung

UTF-8 solves most of the encoding issues.

» Change the file to be "UTF-8 encoding".

» Add line at the top of the webpage.

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

» Use this conversion in PHP code:

$new_str = mb_convert_encoding($original_str, 'HTML-ENTITIES', 'UTF-8');

Andere Tipps

If you have put Portuguese characters using ASCII with the Portuguese code page 860, then you need to put that as your code page. The other solution is to load the Portuguese text in a text editor specifying 860 code page, then save the text as UTF-8. You can then specify UTF-8 as your encoding in your web page.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top