Amaresh Pattanayak
Amaresh Pattanayak

Reputation: 116

how to display arabic text in cmd?

I am working in a webaap for Arabian client.In jboss console i am not getting the Arabic texts.In place for Arabic text the console is printing only "????..". Here i am posting the snapshot of my jboss console.enter image description here

I have tried with this also,as there is a similar question. similar question I have changed to UTF-8 and it also didn't work for me. Then i have chcp 1256(for Arabic). Now i can able to write in arabic on cmd.But still i am not getting the system.out.println() Strings in console as it is generating dynamically.I am using a xp machine.

Upvotes: 4

Views: 7635

Answers (2)

Fein
Fein

Reputation: 1

If you want to set the default UTF-8 encoding for all cmd windows you need to add this code to the registry:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe]
"CodePage"=dword:0000fde9

Or set the encoding for the document in the .bat : chcp 65001

Next, you need to set the font to display Arabic.

CMD Console > right click on the window title > properties > font: SimSun-ExtB

Upvotes: 0

Ankur Singhal
Ankur Singhal

Reputation: 26067

Need to change default font settings as below,

1. Notepad         :  By changing font to "Lucida Console"
2. Notepad++    :  By changing Encoding to "UTF-8"
3. Console           :  By changing font and codepage.

similar here and here

Upvotes: 1

Related Questions