{"action":"created","issue":{"url":"https://api.github.com/repos/getnikola/nikola/issues/1644","labels_url":"https://api.github.com/repos/getnikola/nikola/issues/1644/labels{/name}","comments_url":"https://api.github.com/repos/getnikola/nikola/issues/1644/comments","events_url":"https://api.github.com/repos/getnikola/nikola/issues/1644/events","html_url":"https://github.com/getnikola/nikola/issues/1644","id":64621125,"number":1644,"title":"IDN SITE_URL is not converted to Punycode","user":{"login":"TheHellstorm","id":1542137,"avatar_url":"https://avatars.githubusercontent.com/u/1542137?v=3","gravatar_id":"","url":"https://api.github.com/users/TheHellstorm","html_url":"https://github.com/TheHellstorm","followers_url":"https://api.github.com/users/TheHellstorm/followers","following_url":"https://api.github.com/users/TheHellstorm/following{/other_user}","gists_url":"https://api.github.com/users/TheHellstorm/gists{/gist_id}","starred_url":"https://api.github.com/users/TheHellstorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheHellstorm/subscriptions","organizations_url":"https://api.github.com/users/TheHellstorm/orgs","repos_url":"https://api.github.com/users/TheHellstorm/repos","events_url":"https://api.github.com/users/TheHellstorm/events{/privacy}","received_events_url":"https://api.github.com/users/TheHellstorm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/getnikola/nikola/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/getnikola/nikola/labels/minor","name":"minor","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/getnikola/nikola/milestones/20","html_url":"https://github.com/getnikola/nikola/milestones/v7.3.2","labels_url":"https://api.github.com/repos/getnikola/nikola/milestones/20/labels","id":1010399,"number":20,"title":"v7.3.2","description":"","creator":{"login":"Kwpolska","id":327323,"avatar_url":"https://avatars.githubusercontent.com/u/327323?v=3","gravatar_id":"","url":"https://api.github.com/users/Kwpolska","html_url":"https://github.com/Kwpolska","followers_url":"https://api.github.com/users/Kwpolska/followers","following_url":"https://api.github.com/users/Kwpolska/following{/other_user}","gists_url":"https://api.github.com/users/Kwpolska/gists{/gist_id}","starred_url":"https://api.github.com/users/Kwpolska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kwpolska/subscriptions","organizations_url":"https://api.github.com/users/Kwpolska/orgs","repos_url":"https://api.github.com/users/Kwpolska/repos","events_url":"https://api.github.com/users/Kwpolska/events{/privacy}","received_events_url":"https://api.github.com/users/Kwpolska/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":10,"state":"open","created_at":"2015-03-07T08:12:05Z","updated_at":"2015-04-07T14:13:39Z","due_on":"2015-04-02T22:00:00Z","closed_at":null},"comments":7,"created_at":"2015-03-26T20:07:23Z","updated_at":"2015-04-07T15:25:23Z","closed_at":null,"body":"The SITE_URL is not converted correctly to Punycode. For example, when initialising a new Blog and writing:\r\n\r\nSite URL [http://getnikola.com/]: http://exämple.com/täst/\r\n, this will result in conf.py to:\r\nSITE_URL = \"http://ex\\u00e4mple.com/t\\u00e4st/\"\r\n\r\nCorrect should be that the domain name is converted to Punycode: \r\nSITE_URL = \"http://xn--exmple-cua.com/t\\u00e4st/\"\r\n\r\nThe result is that for example Firefox throws an error when clicking on the logo.\r\n\r\nI guess that (only) the domain part needs to be isolated from SITE_URL and then converted with \"exämple.com\".encode(\"idna\") to xn--exmple-cua.com.\r\n\r\nNikola should also keep in mind that the user may edit the SITE_URL in conf.py directly and write the IDN without punycode directly, so for example:\r\nSITE_URL = \"http://exämple.com/täst\"\r\nTherefore the Punycode convert should best be applied while building, not in the blog init."},"comment":{"url":"https://api.github.com/repos/getnikola/nikola/issues/comments/90608923","html_url":"https://github.com/getnikola/nikola/issues/1644#issuecomment-90608923","issue_url":"https://api.github.com/repos/getnikola/nikola/issues/1644","id":90608923,"user":{"login":"Kwpolska","id":327323,"avatar_url":"https://avatars.githubusercontent.com/u/327323?v=3","gravatar_id":"","url":"https://api.github.com/users/Kwpolska","html_url":"https://github.com/Kwpolska","followers_url":"https://api.github.com/users/Kwpolska/followers","following_url":"https://api.github.com/users/Kwpolska/following{/other_user}","gists_url":"https://api.github.com/users/Kwpolska/gists{/gist_id}","starred_url":"https://api.github.com/users/Kwpolska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kwpolska/subscriptions","organizations_url":"https://api.github.com/users/Kwpolska/orgs","repos_url":"https://api.github.com/users/Kwpolska/repos","events_url":"https://api.github.com/users/Kwpolska/events{/privacy}","received_events_url":"https://api.github.com/users/Kwpolska/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T15:25:23Z","updated_at":"2015-04-07T15:25:23Z","body":"It looks like the best solution would be to fix things in `nikola init` and require Punycode in the config file (don’t allow to build if Unicode is found in the domain)."}}