[wp-trac] [WordPress Trac] #10298: Error in /wp-admin/ when using danish characters (æøå) in domain names

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 2 06:05:13 UTC 2010


#10298: Error in /wp-admin/ when using danish characters (æøå) in domain names
--------------------------+-------------------------------------------------
 Reporter:  kjeldsen      |        Owner:  markjaquith
     Type:  defect (bug)  |       Status:  closed     
 Priority:  normal        |    Milestone:             
Component:  Canonical     |      Version:  2.8        
 Severity:  normal        |   Resolution:  worksforme 
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------

Comment(by dwright):

 Replying to [comment:13 hakre]:
 > Sorry that's me who needs to say that: That library is written in PHP 5.
 [http://pear.php.net/package/Net_IDNA Net_IDNA] ships with PHP 4 support.
 WordPress is PHP 4 code, so PHP 5 is not an option here (but PHP 5 is very
 much OK for a plugin).

 version 6.0 was PHP4 (current is 6.3), it wouldn't really be much work to
 to get a php4 only version. If it's decided in the future that IDNA
 support is indeed desired in WordPress core, I'm sure a code review of any
 potential libraries would happen then. I ended up using php_net_idna in
 the IDNA [http://wordpress.org/extend/plugins/idna/] plugin.

 >
 > Keep in mind that HTTP headers must be valid ASCII, that's why
 >
 > {{{
 > header("Location: http://www.uddannelsesstøtte.dk");
 > }}}
 >
 > is not a bug in PHP. that's not ASCII (7bit) for the headers, so just do
 not wonder if that does not work properly here and there. You can learn
 all details about HTTP in [http://tools.ietf.org/html/rfc1945 RFC 1945]
 and [http://tools.ietf.org/html/rfc2616 RFC 2616].
 >

 Yes, I'm aware that HTTP headers are US-ASCII, until I had read
 [http://www.rfc-editor.org/rfc/rfc3490.txt] (IDNA rfc) I expected that the
 PHP header function should be able to do the conversion. Now, I see that
 it's an enhancement to be implemented by developers on the  application
 level.

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


More information about the wp-trac mailing list