문제

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.

도움이 되었습니까?

해결책

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');

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top