Re: About encoding

Adam Burke <[email protected]> Fri, 9 Aug 2019 21:12:55 +0100
Newsgroups gmane.comp.lang.jython.user
Message-ID <[email protected]>
--===============6753421239207973628==
Content-Type: multipart/alternative;
	boundary=Apple-Mail-65BACB11-9341-486C-A4EE-4FBB251AA1F0
Content-Transfer-Encoding: 7bit


--Apple-Mail-65BACB11-9341-486C-A4EE-4FBB251AA1F0
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi there

The quick answer is it=E2=80=99s mostly driven by the value of Charset.defau=
ltCharset(). This can be set by Java runtime property -Dfile.encoding at sta=
rtup.

Note that the console you are using has to actually support it.

Away from a computer right now, so excuse the lack of a proper code snippet.=


Cheers
Adam

> =E5=9C=A8 2019=E5=B9=B48=E6=9C=889=E6=97=A5=EF=BC=8C=E4=B8=8A=E5=8D=8811:0=
3=EF=BC=8C=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9A=D0=BE=D1=80=D0=BE=
=D0=BB=D1=8C <[email protected]> =E5=86=99=E9=81=93=EF=BC=9A
>=20
> Hello. How to set encoding in Jython when using it on Java like
> PythonInterpreter?
> When i print russians words its write only ????
>=20
>=20
> _______________________________________________
> Jython-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jython-users

--Apple-Mail-65BACB11-9341-486C-A4EE-4FBB251AA1F0
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D=
utf-8"></head><body dir=3D"auto"><span style=3D"caret-color: rgb(69, 69, 69)=
; color: rgb(69, 69, 69); background-color: rgba(255, 255, 255, 0);">Hi ther=
e</span><div style=3D"caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69);"=
><span style=3D"background-color: rgba(255, 255, 255, 0);"><br></span></div>=
<div style=3D"caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69);"><span s=
tyle=3D"background-color: rgba(255, 255, 255, 0);">The quick answer is it=E2=
=80=99s mostly driven by the value of Charset.defaultCharset(). This can be s=
et by Java runtime property -Dfile.encoding at startup.</span></div><div sty=
le=3D"caret-color: rgb(69, 69, 69); color: rgb(69, 69, 69);"><span style=3D"=
background-color: rgba(255, 255, 255, 0);"><br></span></div><div style=3D"ca=
ret-color: rgb(69, 69, 69); color: rgb(69, 69, 69);"><span style=3D"backgrou=
nd-color: rgba(255, 255, 255, 0);">Note that the console you are using has t=
o actually support it.</span></div><div style=3D"caret-color: rgb(69, 69, 69=
); color: rgb(69, 69, 69);"><span style=3D"background-color: rgba(255, 255, 2=
55, 0);"><br></span></div><div style=3D"caret-color: rgb(69, 69, 69); color:=
 rgb(69, 69, 69);"><span style=3D"background-color: rgba(255, 255, 255, 0);"=
>Away from a computer right now, so excuse the lack of a proper code snippet=
.<br></span></div><div><br></div>Cheers<br><div id=3D"AppleMailSignature" di=
r=3D"ltr">Adam</div><div dir=3D"ltr"><br>=E5=9C=A8 2019=E5=B9=B48=E6=9C=889=E6=
=97=A5=EF=BC=8C=E4=B8=8A=E5=8D=8811:03=EF=BC=8C=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=
=D0=B8=D0=B9 =D0=9A=D0=BE=D1=80=D0=BE=D0=BB=D1=8C &lt;<a href=3D"mailto:fffa=
[email protected]">[email protected]</a>&gt; =E5=86=99=E9=81=93=EF=BC=9A<br><br>=
</div><blockquote type=3D"cite"><div dir=3D"ltr"><span>Hello. How to set enc=
oding in Jython when using it on Java like</span><br><span>PythonInterpreter=
?</span><br><span>When i print russians words its write only ????</span><br>=
<span></span><br><span></span><br><span>____________________________________=
___________</span><br><span>Jython-users mailing list</span><br><span><a hre=
f=3D"mailto:[email protected]">[email protected]=
ge.net</a></span><br><span><a href=3D"https://lists.sourceforge.net/lists/li=
stinfo/jython-users">https://lists.sourceforge.net/lists/listinfo/jython-use=
rs</a></span><br></div></blockquote></body></html>=

--Apple-Mail-65BACB11-9341-486C-A4EE-4FBB251AA1F0--


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


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

_______________________________________________
Jython-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-users

--===============6753421239207973628==--