title: Text Widget does not display Unicode Characters
body: <p>I am working on a regional language text editor, which takes the regional Unicode characters (script that I am using is Gurmukhi and Unicode compatible font is Raavi) from text widget and prints it on the terminal screen. </p>
  
  <p>Now problem arises when I copy and paste some characters strings into the text widget, it get convert into the boxes as shown in the image, but it prints perfect string on terminal window.</p>
  
  <p>Although I have tried <code>encoding</code> and <code>decoding</code> functionality from <code>codecs</code>, but, that too gets in vain. </p>
  
  <p>I cannot find any answer related to Unicode entry mechanism for Text widget in Tkinter. </p>
  
  <p>How we can show perfect unicode string ਸਤਵਿੰਦਰ in text widget? </p>
  
  <p>Here is my code:</p>
  
  <pre><code>#!/usr/bin/env python
  # -*- coding: utf-8 -*-
  import tkinter.font as tkFont
  from tkinter import *
  
  def retrieve_input(self):
      inputValue = content_text.get("1.0", "end-1c")
      print(inputValue)
  
  root = Tk()
  root.call('encoding', 'system', 'utf-8')
  customFont = tkFont.Font(family='Raavi', size=17)
  root.title("Unicode Handling")
  root.geometry('400x200+150+200')
  content_text = Text(root, wrap='word', font=customFont)
  content_text.configure(font=customFont)
  content_text.focus_set()
  content_text.pack(expand='yes', fill='both')
  scroll_bar = Scrollbar(content_text)
  content_text.configure(yscrollcommand=scroll_bar.set)
  scroll_bar.config(command=content_text.yview)
  scroll_bar.pack(side='right', fill='y')
  root.bind("&lt;space&gt;", retrieve_input)
  root.mainloop()
  </code></pre>
  
  <p>Here is input and output:</p>
  
  <p><a href="https://i.stack.imgur.com/5x1Rl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5x1Rl.png" alt="Input and Output"></a></p>