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


Groups > comp.lang.python > #68071

process.popen with Japanese args => UTF8 JAVA

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <tnajun@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.039
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'filename': 0.09; 'sentence': 0.09; 'language.': 0.14; 'cmd': 0.16; 'filename)': 0.16; 'proc': 0.16; 'utf8': 0.16; '{0}': 0.16; 'help.': 0.21; 'skip:{ 20': 0.24; 'java': 0.24; 'compiled': 0.26; 'tried': 0.27; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'code': 0.31; "skip:' 10": 0.31; 'anyone': 0.31; 'run': 0.32; 'skip:& 30': 0.33; 'subject:with': 0.35; 'knows': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'skip:> 10': 0.36; 'to:addr:python- list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'skip:c 50': 0.60; 'matter': 0.61; 'charset:iso-2022-jp': 0.65; "'test'": 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Uk6VYHaYWpS9GtJfVOqwZeHAYYHPxy3JtKsYTjWSeMA=; b=ZbJh+XDmWvL3TkTjIlPL5BqTfM0YgmVw3wQJaKZjwcJYg3+bg93c9Y3Z4trSkt4yUf f7ZS4KMxha4VmBs0XqBdJcdNAYV4VuVbm4323zHpU5026a/XkWVVNvnDaFuvpiJHTP66 R09nXhiCAbhAhqYPXrsVriR5/zwbunL8j9cHjMzLkKWafRHeYdWeP4FJZfvDlRBGtgj7 4qmKyiLZ6vxztJn0zbLJINfGzzd1RaOD1WGV07NsSiz8XyFDEUJWD3vx8zauc/d4CHqD OOek4qtVVxGRBNc1kHlqsUikXXKKo/pLIDEKHnW+5/1AFXX7B+S1MaCI03PaHJe8AI31 YKXQ==
MIME-Version 1.0
X-Received by 10.140.93.130 with SMTP id d2mr31025929qge.41.1394351578051; Sat, 08 Mar 2014 23:52:58 -0800 (PST)
Date Sun, 9 Mar 2014 16:52:58 +0900
Subject process.popen with Japanese args => UTF8 JAVA
From Jun Tanaka <tnajun@gmail.com>
To python-list@python.org
Content-Type multipart/alternative; boundary=001a113b99b880790004f427c667
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.7950.1394351586.18130.python-list@python.org> (permalink)
Lines 46
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1394351586 news.xs4all.nl 2885 [2001:888:2000:d::a6]:41815
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:68071

Show key headers only | View raw


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

Hello,

I have tried to process.popen to run java program with Japanese language.
test.java is compiled with utf8
'日本語' below means Japanese in Japanese.
but it does not work. Anyone who knows this matter well. Please help.

Jun

>>>>>>>>python code>>>>>>>>>>>>>
sentence = '日本語'
filename = 'japanese'
java_file = 'test'
cmd = "java {0} {1} {2}".format(java_file, sentence, filename)
proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
>>>>>>>>python code end>>>>>>>>>>>>>>>>>>>>>>

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


Thread

process.popen with Japanese args => UTF8 JAVA Jun Tanaka <tnajun@gmail.com> - 2014-03-09 16:52 +0900

csiph-web