[nycphp-talk] PHP UTF8 Conversion to ASCII
Peter Sawczynec
ps at blu-studio.com
Thu Nov 10 16:33:28 EST 2011
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Chris Snyder
Sent: Thursday, November 10, 2011 4:16 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] PHP UTF8 Conversion to ASCII
On Thu, Nov 10, 2011 at 4:11 PM, Peter Sawczynec <ps at blu-studio.com> wrote:
Recently came across the issue where utf8 characters were getting outputted into links like so:
http://example.com/ãcenar <http://example.com/%C3%A3cenar> [<< where the "a" is a special character], which a browser can turn to links like so:
http://example.com/ã <http://example.com/%C3%A3> �cenar
In researching, I have found that browsers do not handle special utf8 characters in urls very well.
Seems like this is exactly what urlencode() is for, no?
[Peter Sawczynec]
My impression was that urlencode translated chars that cannot pass in an URL into entities that can. But those new entities are now gibberish to the human eye.
My end reuslt needed is creating user-friendly, clean, attractive urls from utf8 that will render as human-readable characteres in the browser address bar.
And that browsers will not choke on the link when a user clicks it in web page.
Are you saying that an urlencoded link will be clickable in a web page and render human-readable in the browser address bar too?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20111110/4e31ba88/attachment.html>
More information about the talk
mailing list