Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31255
| Date | 2012-10-14 18:31 +0100 |
|---|---|
| From | MRAB <python@mrabarnett.plus.com> |
| Subject | Re: pyw program not displaying unicode characters properly |
| References | <MPG.2ae50ce060f7e130989681@news.free.fr> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2178.1350235875.27098.python-list@python.org> (permalink) |
On 2012-10-14 17:55, jjmeric wrote:
>
> Hi everybody !
>
> Our language lab at INALCO is using a nice language parsing and analysis
> program written in Python. As you well know a lot of languages use
> characters that can only be handled by unicode.
>
> Here is an example of the problem we have on some Windows computers.
> In the attached screen-shot (DELETED),
> the bambara character (a sort of epsilon) is displayed as a square.
>
> The fact that it works fine on some computers and fails to display the
> characters on others suggests that it is a user configuration issue:
> Recent observations: it's OK on Windows 7 but not on Vista computers,
> it's OK on some Windows XP computers, it's not on others Windows XP...
>
> On the computers where it fails, we've tried to play with options in the
> International settings, but are not able to fix it.
>
> Any idea that would help us go in the right direction, or just fix it,
> is welcome !
>
> Thanks!
> I ni ce! (in bambara, a language spoken in Mali, West Africa)
>
A square is shown when the font being used doesn't contain a visible
glyph for the codepoint.
Which codepoint is it? What is the codepoint's name?
Here's how to find out:
>>> hex(ord("Ɛ"))
'0x190'
>>> import unicodedata
>>> unicodedata.name("Ɛ")
'LATIN CAPITAL LETTER OPEN E'
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
pyw program not displaying unicode characters properly jjmeric <jjmeric@free.fr> - 2012-10-14 18:55 +0200
Re: pyw program not displaying unicode characters properly Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2012-10-14 19:19 +0200
Re: pyw program not displaying unicode characters properly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-14 21:01 +0000
Re: pyw program not displaying unicode characters properly Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-10-14 21:41 -0400
Re: pyw program not displaying unicode characters properly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-15 07:35 +0000
Re: pyw program not displaying unicode characters properly Roy Smith <roy@panix.com> - 2012-10-15 07:45 -0400
Re: pyw program not displaying unicode characters properly Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2012-10-15 07:42 +0200
Re: pyw program not displaying unicode characters properly MRAB <python@mrabarnett.plus.com> - 2012-10-14 18:31 +0100
Re: pyw program not displaying unicode characters properly jjmeric <jjmeric@free.fr> - 2012-10-14 21:36 +0200
Re: pyw program not displaying unicode characters properly Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-14 15:19 -0600
Re: pyw program not displaying unicode characters properly jjmeric <jjmeric@free.fr> - 2012-10-14 23:39 +0200
Re: pyw program not displaying unicode characters properly Roy Smith <roy@panix.com> - 2012-10-14 16:30 -0400
csiph-web