Content-type: multipart/related; Boundary="1__=C7BBF318DFCEF0658f9e8a93df938690918cC7BBF318DFCEF065" --1__=C7BBF318DFCEF0658f9e8a93df938690918cC7BBF318DFCEF065 Content-type: multipart/alternative; Boundary="2__=C7BBF318DFCEF0658f9e8a93df938690918cC7BBF318DFCEF065" --2__=C7BBF318DFCEF0658f9e8a93df938690918cC7BBF318DFCEF065 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: quoted-printable Thanks Johannes. Sorry for late response. I tried with plain Java andI can input characters. Here is the test fil= e. (See attached file: test.java) Compile it and run it in windows console >> java -classspath "." test However, in the same console, after I start jython console with "j= ava -jar jython.jar " and run "import java; java.lang.System.console().readLine()", I can still input only a character and the console echoed what I input,= like u'c' ( c is what I input) Here is my environment: OS: windows XP sp3 Language: Chinese (same issue in Japanese) JDK: 1.6 Jython: 2.5.1 Any suggestions are appreciated. Thanks. Sean = Johannes Buchner = = To jython-users@lists.sourceforge.n= et 2012/01/18 18:01 = cc = Subj= ect Re: [Jython-users] I can only in= put a character with = java.lang.System.console().readl= ine () in Chinese or Japanese langua= ge = = = = = = On 01/18/12 04:17, Sheng Qiang Xu wrote: > I'm using jython 2.5.1 and my OS is windows XP and language is > Chinese. > > When using java.lang.System.console().readline() to input text, I > can only input a character (the behavior seems like pressing enter) > and the console jumps to next line. > > Could somebody pls help to take a look at this? Does the same happen with plain Java? If yes, please file a bug for Jav= a. Cheers, Johannes -----------------------------------------------------------------------= ------- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers= is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3= , Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Jython-users mailing list Jython-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jython-users = --2__=C7BBF318DFCEF0658f9e8a93df938690918cC7BBF318DFCEF065 Content-type: text/html; charset=US-ASCII Content-Disposition: inline Content-transfer-encoding: quoted-printable

Thanks Johannes.
Sorry for late response.

I tried with plain Java andI can input characters. Here is the test fil= e. (See attached file: test.java)
Compile it and run it in windows console
>> java -classspath "." test

However, in the same console, after I start jython console with &q= uot;java -jar jython.jar "
and run "import java; java.lang.System.console().readLine()"= ;,
I can still input only a character and the console echoed what I input,= like u'c' ( c is what I input)

Here is my environment:
OS: windows XP sp3
Language: Chinese (same issue in Japanese)
JDK: 1.6
Jython: 2.5.1

Any suggestions are appreciated.

Thanks.
Sean


3D"InactiveJohannes Buchner ---2012/01/18 18:03:09= ---On 01/18/12 04:17, Sheng Qiang Xu wrote:

=
          Johannes Buchner <buchner.johannes@gmx.at>= ;

          2012/01/18 18:01

=
3D=
To
3D""
jython-users@lists.sourceforge.net
3D=
cc
3D""
3D=
Subject
3D""
Re: [Jython-users] I can only input a character with j= ava.lang.System.console().readline() in Chinese or Japanese language
3D=3D""

On 01/18/12 04:17, Sheng Qiang Xu wrote:
> I'm using jython 2.5.1 and my OS is windows XP and language is
= > Chinese.
>
> When using java.lang.System.console().readline() to input text, I<= br> > can only input a character (the behavior seems like pressing enter= )
> and the console jumps to next line.
>
> Could somebody pls help to take a look at this?

Does the same happen with plain Java? If yes, please file a bug for Jav= a.

Cheers,
Johannes

-----------------------------------------------------------------------= -------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers=
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3= ,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.ne= t/sfu/learndevnow-d2d
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users


= --2__=C7BBF318DFCEF0658f9e8a93df938690918cC7BBF318DFCEF065-- --1__=C7BBF318DFCEF0658f9e8a93df938690918cC7BBF318DFCEF065 Content-type: image/gif; name="graycol.gif" Content-Disposition: inline; filename="graycol.gif" Content-ID: <2__=C7BBF318DFCEF0658f9e8a93df938@cn.ibm.com> Content-transfer-encoding: base64 R0lGODlhEAAQAKECAMzMzAAAAP///wAAACH5BAEAAAIALAAAAAAQABAAAAIXlI+py+0PopwxUbpu ZRfKZ2zgSJbmSRYAIf4fT3B0aW1pemVkIGJ5IFVsZWFkIFNtYXJ0U2F2ZXIhAAA7 --1__=C7BBF318DFCEF0658f9e8a93df938690918cC7BBF318DFCEF065 Content-type: image/gif; name="pic01673.gif" Content-Disposition: inline; filename="pic01673.gif" Content-ID: <3__=C7BBF318DFCEF0658f9e8a93df938@cn.ibm.com> Content-transfer-encoding: base64 R0lGODlhWABDALP/AAAAAK04Qf79/o+Gm7WuwlNObwoJFCsoSMDAwGFsmIuezf///wAAAAAAAAAA AAAAACH5BAEAAAgALAAAAABYAEMAQAT/EMlJq704682770RiFMRinqggEUNSHIchG0BCfHhOjAuh EDeUqTASLCbBhQrhG7xis2j0lssNDopE4jfIJhDaggI8YB1sZeZgLVA9YVCpnGagVjV171aRVrYR RghXcAGFhoUETwYxcXNyADJ3GlcSKGAwLwllVC1vjIUHBWsFilKQdI8GA5IcpApeJQt8L09lmgkH LZikoU5wjqcyAMMFrJIDPAKvCFletKSev1HBw8KrxtjZ2tvc3d5VyKtCKW3jfz4uMKmq3xu4N0nK BVoJQmx2LGVOmrqNjjJf2hHAQo/eDwJGTKhQMcgQEEAnEjFS98+RnW3smGkZU6ncCWav/4wYOnAI TihRL/4FEwbp28BXMMcoscQCVxlepL4IGDSCyJyVQOu0o7CjmLN50OZlqWmyFy5/6yBBuji0AxFR M00oQAqNIstqI6qKHUsWRAEAvagsmfUEAImyxgbmUpJk3IklNUtJOUAVLoUr1+wqDGTE4zk+T6FG uQb3SizBCwatiiUgCBN8vrz+zFjVyQ8FWkOlg4NQiZMB5QS8QO3mpOaKnL0Z2EKvNMSILEThKhCg zMKPVxYJh23qm9KNW7pArPynMqZDiErsTMqI+LRi3QAgkFUbXpuFKhSYZALd0O5RKa2z9EYKBbpb qxIKsjUPRgD7I2XYV6wyrOw92ykExP8NW4URhknC5dKGE4v4NENQj2jXjmfNgOZDaXb5glRmXQ33 YEWQYNcZFnrYcIQLNzyTFDQNkXIff0ExVlY4srziQk43inZgL4rwxxINMvpFFAz1KOODHiu+4aEw NEjFl5B3JIKWKF3k6I9bfUGp5ZZcdunll5IA4cuHvQQJ5gcsoCWOOUwgltIwAKRxJgbIkJAQZEq0 2YliZnpZZ4BH3CnYOXldOUOfQoYDqF1LFHbXCrO8xmRsfoXDXJ6ChjCAH3QlhJcT6VWE6FCkfCco CgrMFsROrIEX3o2whVjWDjoJccN3LdggSGXLCdLEgHr1lyU3O3QxhgohNKXJCWv8JQr/PDdaqd6w 2rj1inLiGeiCJoDspAoQlYE6QWLSECehcWIYxIQES6zhbn1iImTHEQyqJ4eIxJJoUBc+3CbBuwZE V5cJPPkIjFDdeEabQbd6WgICTxiiz0f5dBKquXF6k4senwEhYGnKEFJeGrxUZy8dB8gmAXI/sPvH ESfCwVt5hTgYiqQqtdRNHQIU1PJ33ZqmzgE90OwLaoJcnMop1WiMmgkPHQRIrwgFuNV90A3doNKT mrKIN07AnGcI9BQjhCBN4RfA1qIZnMqorJCogKfGQnxSCDilTVIA0yl5ciTovgLuBDKFUDE9aQcw 9SA+rjSNf9/M1gxrj6VwDTS0IUSElMzBfsj0NFXR2kwsV1A5IF1grLgLL/r1R40BZEnuBWgmQEyb jqRwSAt6bqMCOFkvKFN2GPPkUzIm/SCF8z8pVzpbjVnMsy0vOr1hw3SaSRUhpY09v0z0J1FnwzPl fmh+xl4WtR0zGu24I4KbMQm3lnVu2oNWxI9W/lcyzA+mCKF4DBikxb/+UWtOGRiFP8qEwAayIgIA Ow== --1__=C7BBF318DFCEF0658f9e8a93df938690918cC7BBF318DFCEF065 Content-type: image/gif; name="ecblank.gif" Content-Disposition: inline; filename="ecblank.gif" Content-ID: <4__=C7BBF318DFCEF0658f9e8a93df938@cn.ibm.com> Content-transfer-encoding: base64 R0lGODlhEAABAIAAAAAAAP///yH5BAEAAAEALAAAAAAQAAEAAAIEjI8ZBQA7 --1__=C7BBF318DFCEF0658f9e8a93df938690918cC7BBF318DFCEF065--