Hello Rob,
> Try this line:
> $this->ticker .= utf8_decode($child_elements->item($j)->textContent);
> Your original HTML document is ISO-8859-1, so when you want the text
> I think you want to convert the UTF-8 (Internally DOM document
> works with UTF-8) to ISO-8859-1. Just using the utf8_dec
On Sun, September 17, 2006 9:48 am, Leonidas Safran wrote:
I'm far from an international expert, but I believe that if you want
ALL browsers to behave (and not just IE) then you want to use HEADERS
for your content type and charset, as well as the embedded META tag.
IE trusts Web Designers and the
Leonidas Safran wrote:
Hello Rob,
Do you have your code somewhere?
Yes, I paste it below. There are two files, one for HTML output (which I make invisible
with style declaration "display:none;" and the second file is a javascript
function which is supposed to output the content...
Try thi
Hello Rob,
> Do you have your code somewhere?
Yes, I paste it below. There are two files, one for HTML output (which I make
invisible with style declaration "display:none;" and the second file is a
javascript function which is supposed to output the content...
Another thing I realized that I f
Leonidas Safran wrote:
> I tried following:
I downloaded the ominous html page, coded it as UTF-8 (with text-editor option)
and added a metag-tag declaring utf-8 encoding:
I checked that the special characters were written correctly then (actually I had to correct them).
Then I used the f
Hello Rob,
Thank you for your advices... :-)
> Is there a meta tag that specifies the encoding?
> When loading HTML that is also used to determine the encoding.
> I think I need to clarify the encoding issue:
> I'll bet when the document is loading, the encoding is being properly
> detected. Wh
Is there a meta tag that specifies the encoding? When loading HTML that
is also used to determine the encoding. I think I need to clarify the
encoding issue:
I'll bet when the document is loading, the encoding is being properly
detected. When working with the elements however you are getting hu
Hello Rob,
Thanks for answering (so fast)... :-)
> Remember most of the functionality - other than the saveXML(),
> saveHTML() functions - output using UTF-8
> (which you would need to convert to what ever encoding you need).
Well I did try before loadHTML call:
$doc = new DomDocument('1.0',
How are you getting that output?
Remember most of the functionality - other than the saveXML(),
saveHTML() functions - output using UTF-8 (which you would need to
convert to what ever encoding you need).
Rob
Leonidas Safran wrote:
Hello all,
Again a question on the new DOM functions...
Th
9 matches
Mail list logo