Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75677

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <v+python@g.nevcal.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'read.': 0.03; 'encoding': 0.05; 'output': 0.05; 'encouraging': 0.07; 'variables': 0.07; 'output,': 0.09; 'referenced': 0.09; 'separately': 0.09; 'subject:characters': 0.09; 'to)': 0.09; 'python': 0.11; 'bug': 0.12; 'thread': 0.14; 'windows': 0.15; 'cmd': 0.16; 'earlier.': 0.16; 'encodings': 0.16; 'least.': 0.16; 'presume': 0.16; 'stdout': 0.16; 'subject:Unicode': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'bit': 0.19; 'trying': 0.19; '(but': 0.19; 'else,': 0.19; 'written': 0.21; 'seems': 0.21; 'pages,': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; '(such': 0.24; 'adds': 0.24; 'certainly': 0.24; 'specify': 0.24; 'subject:problem': 0.24; 'unicode': 0.24; '(or': 0.24; 'environment': 0.24; 'source': 0.25; 'push': 0.26; 'header:In- Reply-To:1': 0.27; 'installed': 0.27; 'character': 0.29; "doesn't": 0.30; 'andrew': 0.30; 'characters': 0.30; 'said,': 0.30; 'gives': 0.31; 'code': 0.31; 'page.': 0.31; 'font': 0.31; 'subject:some': 0.31; 'workaround': 0.31; 'anyone': 0.31; 'file': 0.32; 'figure': 0.32; 'run': 0.32; 'another': 0.32; 'open': 0.33; 'worked': 0.33; 'bugs': 0.33; 'comment': 0.34; 'screen': 0.34; 'maybe': 0.34; 'problem': 0.35; 'subject:with': 0.35; 'display': 0.35; 'but': 0.35; 'edge': 0.36; 'interface,': 0.36; 'received:10.0': 0.36; 'application': 0.37; 'received:10': 0.37; 'clear': 0.37; 'configured': 0.38; 'whatever': 0.38; 'to:addr :python-list': 0.38; 'files': 0.38; 'issue': 0.38; 'pm,': 0.38; 'does': 0.39; 'launch': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'users': 0.40; 'how': 0.40; 'read': 0.60; 'applicable': 0.60; 'received:unknown': 0.61; 'free': 0.61; 'providing': 0.61; 'course': 0.61; 'real': 0.63; 'grab': 0.64; 'more': 0.64; 'within': 0.65; 'latest': 0.67; 'biggest': 0.67; 'received:bluehost.com': 0.68; 'default': 0.69; '"just': 0.84; 'characters,': 0.84; 'clearer': 0.84; 'console,': 0.84; 'glenn': 0.84; 'scraping': 0.84; 'selection,': 0.84; 'unclear': 0.84; 'directly.': 0.95; 'obtained': 0.96
X-Authority-Analysis v=2.1 cv=fudPOjIf c=1 sm=1 tr=0 a=bHMQH+OLnPEWGwbUEerQzQ==:117 a=bHMQH+OLnPEWGwbUEerQzQ==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=tcnv99F1KMcA:10 a=NQx7NIpX_PoA:10 a=WiSE-OA02TIA:10 a=aDqhzxAoLLkA:10 a=9HSTQGAzAAAA:8 a=7j9GTTBHwvYA:10 a=foBewTYRo0cA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=9iDbn-4jx3cA:10 a=cKsnjEOsciEA:10 a=ggbuUhAI8lF6q4yTMtwA:9 a=QEXdDO2ut3YA:10 a=rnj5coxf_sYdqSDOXDUA:9 a=z_v1k3ofAQUa4FXw:21 a=_W_S_7VecoQA:10
Date Mon, 04 Aug 2014 02:46:13 -0700
From Glenn Linderman <v+python@g.nevcal.com>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version 1.0
To python-list@python.org
Subject Re: cmd.exe on WIndows - problem with displaying some Unicode characters
References <yxht7c4so8ud.kqpa5p5iv0mp.dlg@40tude.net> <CAPTjJmqqw1k3NY4zo7tLnDKTzgP6RyXaqZ-7B7R7uC6Rndr2fQ@mail.gmail.com> <53DEC4F5.8090805@my.hennepintech.edu> <53DED137.7080907@g.nevcal.com> <53DF08B4.20600@g.nevcal.com> <53DF14DF.3090504@my.hennepintech.edu>
In-Reply-To <53DF14DF.3090504@my.hennepintech.edu>
Content-Type multipart/alternative; boundary="------------020509050907040805070905"
X-Identified-User {1756:box1033.bluehost.com:areliabl:nevcal.com} {sentby:smtp auth 75.141.227.179 authed with test@nevcal.com}
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12632.1407145985.18130.python-list@python.org> (permalink)
Lines 131
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1407145985 news.xs4all.nl 2923 [2001:888:2000:d::a6]:46634
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:75677

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 8/3/2014 10:06 PM, Andrew Berg wrote:
> On 2014.08.03 23:14, Glenn Linderman wrote:
>> Having read a bit about ConEmu, it seems that it is a "pretty face" built on
>> top of Windows Console, by screen scraping the real (but hidden) Windows
>> Console, and providing a number of interesting display features and modes. So
>> while it adds functionality to the Windows Console interface, it doesn't seem
>> like it is likely to fix bugs or resolve issues with code pages, font
>> selection, or Unicode character repertoires, which are the issues of this
>> thread and the bug I referenced earlier.
>>
>> Can anyone with ConEmu installed refute this interpretation of its functionality?
>>
> If you run cmd in it, you will still need to use cp65001.
Or some workaround. The latest workaround in the issue I referenced does 
not require cp65001 either, for output, at least.

> This is not necessary
> for  (or applicable to) other applications (such as a Python interpreter) run
> directly.
How does one "directly run" another application using ConEmu? That 
wasn't clear from what I found to read. It sounded like you run ConEmu, 
run one or more shells within it, and launch programs from those shells? 
And so it was also unclear if a program launched from some batch file 
would have to have the batch file launched from ConEmu, also. Or does 
ConEmu grab the execution association for batch files to make that work 
more automatically?

> ConEmu can use any arbitrary font available on the system. As I have
> said, I have been able to display Unicode output on it from an application
> written in Python. No mojibake, no replacement characters, just the exact
> characters one would expect.
> I do not know the internals of ConEmu and how it interacts with conhost and
> whatever else, but I have not found a need to since it has just worked for me.
So you may not know the internals of ConEmu, but I presume you know the 
internals of your Python applications. What encodings do you use for 
stdout for those applications? Do you set up the Python environment 
variables that specify some particular encoding, in the ConEmu 
environment (or does it)? Because the default Python IO encoding in 
Windows seems to be obtained from the configured code page.

Of course the biggest problem with much free and open source software is 
the documentation; I wasn't able to find specific answers to all my 
questions by reading the ConEmu wiki. Maybe some of it would be clearer 
if I installed it, and your "just worked" comment is certainly 
encouraging me to "just try it", but while trying it may help me figure 
it out, adding another package to separately install for my users gives 
more complexity. See if you can push me over the edge :)

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

cmd.exe on WIndows - problem with displaying some Unicode characters Wiktor <look@signature.invalid> - 2014-08-04 00:52 +0200
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Chris Angelico <rosuav@gmail.com> - 2014-08-04 09:08 +1000
    Re: cmd.exe on WIndows - problem with displaying some Unicode characters Christian Gollwitzer <auriocus@gmx.de> - 2014-08-04 22:35 +0200
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-04 00:20 +0100
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Andrew Berg <aberg010@my.hennepintech.edu> - 2014-08-03 18:25 -0500
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-04 00:29 +0100
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Chris Angelico <rosuav@gmail.com> - 2014-08-04 09:39 +1000
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Chris Angelico <rosuav@gmail.com> - 2014-08-04 10:14 +1000
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Glenn Linderman <v+python@g.nevcal.com> - 2014-08-03 17:17 -0700
    Re: cmd.exe on WIndows - problem with displaying some Unicode characters wxjmfauth@gmail.com - 2014-08-04 01:47 -0700
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Glenn Linderman <v+python@g.nevcal.com> - 2014-08-03 21:14 -0700
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Andrew Berg <aberg010@my.hennepintech.edu> - 2014-08-04 00:06 -0500
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Terry Reedy <tjreedy@udel.edu> - 2014-08-04 04:39 -0400
    Re: cmd.exe on WIndows - problem with displaying some Unicode characters Wiktor <look@signature.invalid> - 2014-08-04 17:00 +0200
      Re: cmd.exe on WIndows - problem with displaying some Unicode characters Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-08-04 17:43 +0200
        Re: cmd.exe on WIndows - problem with displaying some Unicode characters Wiktor <look@signature.invalid> - 2014-08-04 18:48 +0200
          Re: cmd.exe on WIndows - problem with displaying some Unicode characters Chris Angelico <rosuav@gmail.com> - 2014-08-05 03:06 +1000
            Re: cmd.exe on WIndows - problem with displaying some Unicode characters Wiktor <look@signature.invalid> - 2014-08-04 19:22 +0200
              Re: cmd.exe on WIndows - problem with displaying some Unicode characters Terry Reedy <tjreedy@udel.edu> - 2014-08-04 15:43 -0400
      Re: cmd.exe on WIndows - problem with displaying some Unicode characters Terry Reedy <tjreedy@udel.edu> - 2014-08-04 15:17 -0400
        Re: cmd.exe on WIndows - problem with displaying some Unicode characters Wiktor <look@signature.invalid> - 2014-08-04 22:24 +0200
          Re: cmd.exe on WIndows - problem with displaying some Unicode characters Akira Li <4kir4.1i@gmail.com> - 2014-08-05 04:51 +0400
            Re: cmd.exe on WIndows - problem with displaying some Unicode characters wxjmfauth@gmail.com - 2014-08-05 00:38 -0700
            Re: cmd.exe on WIndows - problem with displaying some Unicode characters Wiktor <look@signature.invalid> - 2014-08-05 11:39 +0200
      Re: cmd.exe on WIndows - problem with displaying some Unicode characters Chris Angelico <rosuav@gmail.com> - 2014-08-05 06:11 +1000
      Re: cmd.exe on WIndows - problem with displaying some Unicode characters giacomo boffi <g@boffi.net> - 2014-08-04 22:53 +0200
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-08-04 10:46 +0200
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Glenn Linderman <v+python@g.nevcal.com> - 2014-08-04 02:46 -0700
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Glenn Linderman <v+python@g.nevcal.com> - 2014-08-04 02:53 -0700
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-08-04 12:24 +0200
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Andrew Berg <aberg010@my.hennepintech.edu> - 2014-08-04 05:33 -0500
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Glenn Linderman <v+python@g.nevcal.com> - 2014-08-04 11:04 -0700
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Glenn Linderman <v+python@g.nevcal.com> - 2014-08-04 11:15 -0700
    Re: cmd.exe on WIndows - problem with displaying some Unicode characters Grant Edwards <invalid@invalid.invalid> - 2014-08-04 19:30 +0000
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Terry Reedy <tjreedy@udel.edu> - 2014-08-04 15:25 -0400
  Re: cmd.exe on WIndows - problem with displaying some Unicode characters Tony the Tiger <tony@tiger.invalid> - 2014-08-05 20:26 +0000
    Re: cmd.exe on WIndows - problem with displaying some Unicode characters Grant Edwards <invalid@invalid.invalid> - 2014-08-05 20:41 +0000
    Re: cmd.exe on WIndows - problem with displaying some Unicode characters Wiktor <look@signature.invalid> - 2014-08-06 00:16 +0200
      Re: cmd.exe on WIndows - problem with displaying some Unicode characters Tony the Tiger <tony@tiger.invalid> - 2014-08-06 18:27 +0000
    Re: cmd.exe on WIndows - problem with displaying some Unicode characters wxjmfauth@gmail.com - 2014-08-05 23:30 -0700

csiph-web