Re: Re: Re: gibberish output when using the loadHTMLFile() function

[email protected] (atar) Mon, 12 Aug 2013 12:11:22 -0000
Newsgroups php.i18n
Message-ID <op.w1pdg8s4e4gg2u@localhost>
Hi there!!

I think I've changed all the appropriate encoding parameters:

> mb_internal_encoding("UTF-8");
> iconv_set_encoding("internal_encoding", "UTF-8");
> iconv_set_encoding("input_encoding", "UTF-8");
> iconv_set_encoding("output_encoding", "UTF-8");/*
> print_r(iconv_get_encoding());

Unfortunately, non of them solved that issue.

I've noticed that when I load the HTML page directly into the browser,  
it's displayed appropriately when the browser encodes the document with  
the UTF-8 charset, but when I instruct the browser to encode the HTML page  
with the ISO-8859-1 charset, it's displayed exactly as it is displayed  
when I load the HTML document through the "loadHTMLFile()" PHP's  
function!! this causes me to think that the "loadHTMLFile()" PHP's  
function loads its file argument with the ISO-8859-1 charset. now I  
apparently need to find a way to instruct the "loadHTMLFile()" PHP's  
function to load its file argument using the UTF-8 charset. I still didn't  
find this way. if someone has any idea, I'll be very happy to know!

Thanks in advance!!

atar.