Em Andamento

Fix Encoding Bug in small PHP Script

I have a small PHP script that uses fopen/fread to read the HTML from a remote URL. ? The script strips out the HTML tags and then echos out the text.

With some URLs, however, weird characters appear in the output. ? I assume this has something to do with the character encoding of the remote website but can't figure out how to fix it.

The php script is attached. ? For this project, please update the PHP with any code necessary to make the sample URL (and any other URL) text display properly with the correct encoding.

The PHP file and a screenshot showing the problem are attached.

Habilidades: Engenharia, MySQL, PHP, Gestão de projetos, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Ver mais: small php, small php project, encoding, character figure, bug out, bug html, php file read, php encoding, bug problem, character problem, weird characters website, php project output, small php project output, html bug fix project, fix bug code, fix small php file, php script html text, php screenshot url, screenshot php script, fopen, screenshot url php, url screenshot script, update display php, small project problem, strips

Acerca do Empregador:
( 71 comentários ) United States

ID do Projeto: #2960947

Premiar a:

vw1631360vw

See private message.

$4.99 USD em 2 dias
(237 Avaliações)
5.8

6 freelancers estão ofertando em média $26 para este trabalho

xsixer

See private message.

$42.5 USD in 2 dias
(124 Comentários)
6.0
tvoodoo

See private message.

$12.75 USD in 2 dias
(85 Comentários)
5.6
edreamzinc

See private message.

$42.5 USD in 2 dias
(24 Comentários)
5.1
ivan11vw

See private message.

$12.75 USD in 2 dias
(0 Comentários)
0.0
neo20062007

See private message.

$38.25 USD in 2 dias
(1 Comentário)
1.3