No, this variant is normal too.
# encoding: UTF-8
# coding: UTF-8
# -*- coding: UTF-8 -*-
Any of of this variants is valid and works fine :)

And without this line it was saying "invalid multibyte char (US-ASCII)", because I used russian text in test.