在具有非拉丁字符的域上使用file_get_contents()

Using PHP's fopen wrappers to obtain the source of a remote page, the following works fine:

$src = file_get_contents('http://www.somewhere.com/');

However, this does not, presumably because of the non-Latin character in the domain name:

$src = file_get_contents('http://www.sømewhere.no/');

Mind you the actual domain is a valid, working domain (i.e. not somewhere.com). Is there any way to make this work using file_get_contents()?

There are a lot of reasons for that.

And you can start examining from converting that name to punycode

Btw, currently I cannot open that domain