title: python re.compile and split with ÆØÅ charcters
body: <p>I am very new in Python. 
  I do have a file with a list of words. They contain Danish letters (ÆØÅ) but the re.compile do not understand theses characters. The function split the words by each ÆØÅ. The text are downloade from Twitter and Facebook and do not always contain only letters.</p>
  
  <pre><code>text = "Rød grød med fløde.... !! :)"
  pattern_split = re.compile(r"\W+")
  words = pattern_split.split(text.lower())
  words = ['r', 'd', 'gr', 'd', 'med', 'fl', 'de']
  </code></pre>
  
  <p>The right result should be</p>
  
  <pre><code>    words = ['rød', 'grød', 'med', 'fløde']
  </code></pre>
  
  <p>How do I get the right result?</p>
  
  <p>Full code</p>
  
  <pre><code>#!/usr/bin/python 
  # -*- coding: utf-8 -*-
  
  import math, re, sys, os
  reload(sys)
  sys.setdefaultencoding('utf-8')
  
  # AFINN-111 is as of June 2011 the most recent version of AFINN
  #filenameAFINN = 'AFINN/AFINN-111.txt'
  
  # Get location of file
  __location__ = os.path.realpath(
      os.path.join(os.getcwd(), os.path.dirname(__file__)))
  
  
  filenameAFINN = __location__ + '/AFINN/AFINN-111DK.txt'
  afinn = dict(map(lambda (w, s): (w, int(s)), [ 
              ws.strip().split('\t') for ws in open(filenameAFINN) ]))
  
  # Word splitter pattern
  pattern_split = re.compile(r"\W+")
  #pattern_split = re.compile('[ .,:();!?]+')
  
  def sentiment(text):
      print(text)
      words = pattern_split.split(text.lower().strip())
      print(words)
      sentiments = map(lambda word: afinn.get(word, 0), words)
      if sentiments:
          sentiment = float(sum(sentiments))/math.sqrt(len(sentiments))
  
      else:
          sentiment = 0
      return sentiment
  
  
  # Print result
  text = "ånd ånd med fløde... :)asd "
  id = 999
  split = "###"
  print("%6.2f%s%s%s%s" % (sentiment(text), split, id, split, text))
  </code></pre>