Recently came across the issue where utf8 characters were getting outputted 
into links like so:

http://example.com/ãcenar [<< where the "a" is a special character], which a 
browser can turn to links like so: 

http://example.com/ã�cenar 

 

In researching, I have found that browsers do not handle special utf8 
characters in urls very well.

 

So I looked into PHP conversions of utf8 to ascii and found that even this 
seems an imperfect art.

 

Has anyone found a near perfect utf8 to ascii conversion technique for PHP.

 

I found this reference here: 
http://www.unexpectedit.com/php/php-clean-string-of-utf8-chars-convert-to-similar-ascii-char

 

Is this the best at this time? Any thoughts? 

 

(Also see this nice character encoding overview if needed: 
http://htmlpurifier.org/docs/enduser-utf8.html)

 

Warmest regards, 

 

Peter Sawczynec 

Technology Dir.

blūstudio 

941.893.0396

 <mailto:p...@sun-code.com> p...@blu-studio.com 

 <http://www.blu-studio.com> www.blu-studio.com 

 

_______________________________________________
New York PHP Users Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/Show-Participation

Reply via email to