FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Problem with appendChild and ellipsis...
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Problem with appendChild and ellipsis... [message #173098 is a reply to message #173093] Mon, 21 March 2011 02:36 Go to previous messageGo to previous message
Beauregard T. Shagnas is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: PHP Module Writing Help
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 16:07:53 GMT 2024

Total time taken to generate the page: 0.04068 seconds