Re: [SMARTY] htmlentities bug?
| From: | messju mohr | Date: | Tue, 28 Oct 2003 16:05:04 +0000 |
| Subject: | Re: [SMARTY] htmlentities bug? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10454@lists.php.net to get a copy of this message | ||
maybe you have to tell htmlentities the right charset to use.
On Tue, Oct 28, 2003 at 01:06:33PM +0000, Richard Jones wrote:
> I've encountered a curious problem with htmlentities,
> someone's signed up with a username containing some strange characters, don't
> think they display properly in this email, but each character looks like: |-
>
>
> i rawurlencode the link to this guys user page, and the character encodes to
> %15 - but when i display the name|htmlentities mozilla gives a XML Parsing
> Error: not well-formed
>
> the doctype i'm sending is XHTML 1.0 Transitional, and we're trying to do
> everything in UTF-8 where possible
>
> <a href="/user/%15%15%15booooya%15%15%15"> booooya </a>
>
> that's the bit of html that causes problems, from here (for now):
> http://www.last.fm/user/reload
>
> surely htmlentities should turn the character into something that parses ok in
> mozilla.. anyone any suggestions?
>
> Regards,
> Richard.
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php