Hello Tom
I finally resolved the problem.
I used subprocess.Popen's option "shell=False"
And, make cm by list.
I resolved.
Thank you.
2014年5月8日木曜日 17時45分52秒 UTC+9 Tom Evans:
>
> On Thu, May 8, 2014 at 5:05 AM, Sugita Shinsuke
>
> wrote:
> > Hello Tom Evans
> >
> >
>
On Thu, May 8, 2014 at 5:05 AM, Sugita Shinsuke wrote:
> Hello Tom Evans
>
>
>> plain single and double quotes - " and ', not “ and ‘.
> My e-mail client is Gmail web client.
>
>>What version of Python? 2.x or 3.x?
> Python version is 2.7.5
> And, Django version is 1.3.7
Hello Tom Evans
> plain single and double quotes - " and ', not “ and ‘.
My e-mail client is Gmail web client.
>What version of Python? 2.x or 3.x?
Python version is 2.7.5
And, Django version is 1.3.7
>There was an old case to force Django to use UTF-8:
I added
sys.stdout =
On Sun, Apr 27, 2014 at 7:13 AM, Sugita Shinsuke wrote:
> Hi there
>
> I’d like to run Java code via Django.
>
> The Java code, javaprogram use like below.
>
> —
> java javaprogram [text] [file_name]
> —
>
> text is parameter. multi-byte character is also okey.
> file_name is
Hello Lloyd Dube
I fix 'utf8' to 'utf-8'.
But, same error happned.
ascii' codec can't decode byte 0xe3 in position 0: ordinal not in range(128)
"locale.getpreferredencoding() is ANSI_X3.4-1968"
is not the cause?
2014年5月7日水曜日 0時20分03秒 UTC+9 Lloyd Dube:
>
> That should be ".encode('utf-8') - it
That should be ".encode('utf-8') - it is separated by a dash.
On Tue, May 6, 2014 at 4:31 PM, 杉田臣輔 wrote:
> Hello
>
> Thank you for replying.
> I tried to use the ".encode('utf8')" method before.
>
> I also tried your suggestion. But error happened like below.
>
> 'ascii'
Hello
Thank you for replying.
I tried to use the ".encode('utf8')" method before.
I also tried your suggestion. But error happened like below.
'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in
range(128)
2014-05-06 17:10 GMT+09:00 Hannu Krosing :
>
Dear François
I checked Django's encoding again.
locale.getpreferredencoding() is
ANSI_X3.4-1968
sys.getdefaultencoding() is
ascii
2014年5月5日月曜日 20時12分52秒 UTC+9 Sugita Shinsuke:
>
> Dear François Schiettecatte
>
> Hello.
> Thank you for replying.
>
> I checked sys.getdefaultencoding() in
Dear François Schiettecatte
Hello.
Thank you for replying.
I checked sys.getdefaultencoding() in Django and pure Python of the server.
Django returns 'ascii'.
And, Python returns 'ascii' too.
I also checked your
link,
You should check the encoding of stdout when running from django, I suspect
that it is plain ascii rather than utf-8 which is what you are probably getting
when running standalone. Check sys.getdefaultencoding().
Note that this has nothing to do with django, just the way stdin/stdout are set
Hi there
I’d like to run Java code via Django.
The Java code, javaprogram use like below.
—
java javaprogram [text] [file_name]
—
text is parameter. multi-byte character is also okey.
file_name is generate file name.
So, I run the stand-alone Python program like below could run fine.
—
11 matches
Mail list logo