This works for me on win7-64:

1. Create a new shortcut icon.
2. Change the Target property of the icon to:

C:\Windows\System32\cmd.exe /K "chcp 65001 && cd C:\Users\me\j64-602\bin && 
jconsole"

3. Select the Shortcut Key property of the icon.
4. Cloe the icon properties.
5. Type Ctrl+Alt+j

Now, any time I type Ctrl+Alt+j, I get a new jconsole window that is using 
codepage 65001 and that displays a: using the box drawing characters.

--
David Mitchell

On 10/28/2010 9:41, Tracy Harms wrote:
> Thanks, Raul.
>
> The command 'chcp 65001' does make the box-drawing work right if I launch
> cmd.exe, execute chcp 65001, then execute jconsole.exe within that window.
> That's an improvement.
>
> What I was hoping, though, is to have jconsole.exe open directly and work. I
> defined a key on my keyboard such that a jconsole.exe window opens at the
> touch of that button. This puts me, in effect, in the same mode as after I
> run jconsole.exe in a command-line window. At that point it's too late to
> use chcp 65001.
>
> So far I don't see any way to have chcp 65001 be a default setting for
> command-line mode. That's what I think it would take for directly-launched
> jconsole.exe windows to support box display properly.
>
> --
> Tracy
>
>
> On Tue, Oct 26, 2010 at 4:54 PM, Raul Miller<[email protected]>  wrote:
>
>> ...
>> I think the problem is cmd.exe
>>
>> They display fine for me, when I run jconsole in my usual
>> environment (windows 7, 64 bit, mintty cygwin window).
>> But I get the same thing you get if I run jconsole in a cmd
>> window.
>> ...
>>
>>
>> http://cbloomrants.blogspot.com/2010/06/06-07-10-unicode-cmd-code-page-checkup.html
>> suggests that chcp 65001 will fix the problem, and this
>> worked for me after I changed my cmd.exe font from
>> raster fonts to lucidia console.
>>
>> FYI,
>>
>> --
>> Raul
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to