title: How to remove unicode character from a list in Django?
body: <p>I have a following list of list in Django:</p>
  
  <pre><code>[['Host Name', 'No. of Events'], [u'12.23.21.23', 0], [u'2.152.0.2', 2]]
  </code></pre>
  
  <p>To get the above list, I wrote the following code in my <code>views</code>:</p>
  
  <pre><code> def graph_analysis(request):
      event_host, event_alerts = ([] for x in range(2))
      event_alerts.append(['Host Name', 'No. of Events'])
      host_ipv4 = [et for et in get_hosts(user=request.user)]
      event = get_events(source_hosts=host_ipv4)
      for x in host_ipv4:
          event_host.append(x.ipv4)
          event_alerts.append([x.ipv4,get_host_count(x,event)])
      extra_context = {
      ####
  </code></pre>
  
  <p>Now i am using this list in my Javascript varibale. Everything is fine except the unicode character. I want to remove it. In short i want the above list as follow:</p>
  
  <p><code>[['Host Name', 'No. of Events'], ['12.23.21.23', 0], ['2.152.0.2', 2]]</code></p>
  
  <p>What should i do?</p>