Re: Problem with appendChild and ellipsis... [message #173093 is a reply to message #173090] |
Mon, 21 March 2011 00:16 |
Dennis
Messages: 17 Registered: February 2004
Karma:
|
Junior Member |
|
|
On Sun, 20 Mar 2011 19:42:04 -0400, "Beauregard T. Shagnasty"
<a(dot)nony(dot)mous(at)example(dot)invalid> wrote:
> Dennis wrote:
>
>> "Beauregard T. Shagnasty" wrote:
>>> Dennis wrote:
>>>> <meta charset="UTF-8" />
>>>
>>> That's in the <head> section? Better if you look at the page's
>>> actual Response Headers, for something like this:
>>>
>>> Content-Type: text/html; charset=utf-8
>>>
>>> Firefox's Web Developer's Toolbar can give you the capability...
>>
>> Content-Type: text/html; charset=UTF-8
>
> For kicks, try changing your page's head section to:
> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
>
> ..then check again what the Response Headers say. Sometimes (often?) the
> server overrules what the HTML says, at least in my experience...
Where is this leading? My problem was not having display_errors turned
on, which would have shown me that the string with the ellipsis was not
utf-8. I solved the latter problem by adding...
if (!mb_check_encoding($title_data, 'UTF-8'))
$title_data = mb_convert_encoding($title_data, 'UTF-8');
Now all is well.
--
Dennis
|
|
|