Dealing with Unicode range in Python
Question: I am trying to test if a given string is within the Katakana range or not.

I tried the solution asked here : [Python and Unicode Blocks for
regex](http://stackoverflow.com/questions/3145232/python-and-unicode-blocks-
for-regex). But still, my output is "None". What am i missing here ?

    
    
    #!/usr/bin/env python
    # -*- coding: utf-8 -*-
    import re
    print re.search(u'[\u30A0-\u30FF]', u'カタカ')
    


Answer: Your problem is that you're using Windows. You specify that the source file is
UTF-8, but Windows doesn't use UTF-8 - it uses various code pages, depending
on the language version and settings in Windows itself.

Many editors will have a way to override the Windows code page and save a file
as UTF-8. Notepad for example has an `Encoding` list on the Save As dialog.

