[wp-trac] [WordPress Trac] #10690: Wordpress does not support non-ascii characters in URLs

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 28 01:18:05 UTC 2009


#10690: Wordpress does not support  non-ascii characters in URLs
--------------------------+-------------------------------------------------
 Reporter:  paddya        |       Owner:  markjaquith   
     Type:  defect (bug)  |      Status:  reviewing     
 Priority:  normal        |   Milestone:  Future Release
Component:  Canonical     |     Version:  2.8.4         
 Severity:  normal        |    Keywords:  needs-patch   
--------------------------+-------------------------------------------------

Comment(by hakre):

 Just some pseudocode and thoughts:

 {{{
 $url_unknown = getoption('siteurl');
 list($prefix, $domain, $suffix) = extract_domain_from_url($url);
 $domain_ascii = ( seems_utf8( $domain ) ?  utf8_to_punycode($domain) :
 $domain )
 $url_ascii =  $prefix . $domain_ascii . $suffix;
 }}}

 It might be an option to hook the option siteurl when read but that might
 break the admin output. the rest should work then.

 Or: once entered, the domain will automatically converted and the users do
 not need to do it on their own (Safest way I suppose).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10690#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list