what is the encoding? What is the os? I do not think a domain may contain chars that are not expressible in utf8 but I may be wrong.
On Apr 17, 10:51 am, LightOfMooN <[email protected]> wrote: > request.env.http_host>> 'xn--h1acfjl4f.xn--p1ai' > > So, domain not in utf-8 > How to route it? > > On 17 апр, 21:47, LightOfMooN <[email protected]> wrote: > > > > > > > > > It's s strange > > There is 2 rules > > > 1) > > (r'.*://\xd1\x80\xd0\xb8\xd0\xbb\xd1\x8d\xd0\xb9\xd0\xbd\. > > \xd1\x80\xd1\x84:.* /?', r'/myapp/default/index'), > > > 2) > > (r'/\xd1\x80\xd0\xb8\xd0\xbb\xd1\x8d\xd0\xb9\xd0\xbd\. > > \xd1\x80\xd1\x84', r'/myapp/default/index'), > > > 2nd works fine, but not 1st. I can't understand, why.

