def are_domains_equal(domain1, domain2):
domain1 = domain1.encode("<STR_LIT>")<EOL>domain2 = domain2.encode("<STR_LIT>")<EOL>return domain1.lower() == domain2.lower()<EOL>
Compare two International Domain Names.

    :Parameters:
        - `domain1`: domains name to compare
        - `domain2`: domains name to compare
    :Types:
        - `domain1`: `unicode`
        - `domain2`: `unicode`

    :return: True `domain1` and `domain2` are equal as domain names.