Re: Problem with appendChild and ellipsis... [message #173098 is a reply to message #173093] |
Mon, 21 March 2011 02:36 |
Beauregard T. Shagnas
Messages: 154 Registered: September 2010
Karma:
|
Senior Member |
|
|
Dennis wrote:
> "Beauregard T. Shagnasty" 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.
It was a test to make sure your web server was or was not observing your
<meta> element. Just in case.
--
-bts
-Four wheels carry the body; two wheels move the soul
|
|
|