Unicode range

Vasilis Vlachoudis <[email protected]> Mon, 4 Jan 2021 09:09:48 +0000
Newsgroups gmane.comp.python.tkinter
Message-ID <[email protected]>
--===============4231905376437649939==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_0BC70B5D93E054469872FFD0FE07220E0312E08B77CERNXCHG51cer_"

--_000_0BC70B5D93E054469872FFD0FE07220E0312E08B77CERNXCHG51cer_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,

how can I "replace/strip" unicode characters that are out of the accepted t=
k range before inserting them to Text()?

  File "/usr/lib/python3.6/tkinter/__init__.py", line 3272, in insert
    self.tk.call((self._w, 'insert', index, chars) + args)
_tkinter.TclError: character U+1c784 is above the range (U+0000-U+FFFF) all=
owed by Tcl

Vasilis

--_000_0BC70B5D93E054469872FFD0FE07220E0312E08B77CERNXCHG51cer_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html dir=3D"ltr">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" id=3D"owaParaStyle"></style>
</head>
<body fpstyle=3D"1" ocsi=3D"0">
<div style=3D"direction: ltr;font-family: Tahoma;color: #000000;font-size: =
10pt;">
<div style=3D"">
<div style=3D"">
<div style=3D""><font face=3D"Segoe UI, Helvetica, Arial, sans-serif"><span=
 style=3D"font-size: 13.3333px;">Hi all,</span></font></div>
<div style=3D""><font face=3D"Segoe UI, Helvetica, Arial, sans-serif"><span=
 style=3D"font-size: 13.3333px;"><br>
</span></font></div>
<div style=3D""><font face=3D"Segoe UI, Helvetica, Arial, sans-serif"><span=
 style=3D"font-size: 13.3333px;">how can I &quot;replace/strip&quot; unicod=
e characters that are out of the accepted tk range before inserting them to=
 Text()?</span></font></div>
<div style=3D"font-family: Tahoma; font-size: 13px;"><span style=3D"font-fa=
mily: &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif; font-size: 13.333=
3px;"><br>
</span></div>
<div style=3D"font-family: Tahoma; font-size: 13px;"><span style=3D"font-fa=
mily: &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif; font-size: 13.333=
3px;">&nbsp; File &quot;/usr/lib/python3.6/tkinter/__init__.py&quot;, line =
3272, in insert</span><br style=3D"font-family: &quot;Segoe UI&quot;, Helve=
tica, Arial, sans-serif; font-size: 13.3333px;">
<span style=3D"font-family: &quot;Segoe UI&quot;, Helvetica, Arial, sans-se=
rif; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; self.tk.call((self._w, 'inse=
rt', index, chars) &#43; args)</span><br style=3D"font-family: &quot;Segoe =
UI&quot;, Helvetica, Arial, sans-serif; font-size: 13.3333px;">
<span style=3D"font-family: &quot;Segoe UI&quot;, Helvetica, Arial, sans-se=
rif; font-size: 13.3333px;">_tkinter.TclError: character U&#43;1c784 is abo=
ve the range (U&#43;0000-U&#43;FFFF) allowed by Tcl</span></div>
<div style=3D"font-family: Tahoma; font-size: 13px;"><span style=3D"font-fa=
mily: &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif; font-size: 13.333=
3px;"><br>
</span></div>
<div style=3D"font-family: Tahoma; font-size: 13px;"><span style=3D"font-fa=
mily: &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif; font-size: 13.333=
3px;">Vasilis</span></div>
</div>
</div>
</div>
</body>
</html>

--_000_0BC70B5D93E054469872FFD0FE07220E0312E08B77CERNXCHG51cer_--

--===============4231905376437649939==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tkinter-discuss mailing list
[email protected]
https://mail.python.org/mailman/listinfo/tkinter-discuss

--===============4231905376437649939==--