abalfazl hossein wrote:
They read stream as char, But they still need typecast?
Is it possible to write that program so no need to typecast?
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
abalfazl hossein wrote:
Because when I worked with C, We didn't need to typecast to read character.So it was wonderful for me why do I need typecast in JAVA in order to read characters.
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
For example, write a Swing GUI for your application and display the text in a Swing label. Make sure the label uses a font that contains arabic characters.
abalfazl hossein wrote:
How to use swing in this code to show arabic font?
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Regards, Atul.
I came to this world on a Learner's License
Are you printing the output to a Windows command prompt window, with System.out.println()? The command prompt window normally cannot handle things like arabic text, because it uses a font that does not contain arabic characters.
The problem is not your program, it's the console. The console uses a font that doesn't contain glyphs for Arabian characters.
abalfazl hossein wrote:Look, In fact I hear statement like "command prompt window" or "JAVA console". But I don't know what relationship between them.
abalfazl hossein wrote:If I want to use Farsi Fonts in command prompt window with UTF-8 encoding,It prints question mark.
Is this because DOS does not support UTF-8?
abalfazl hossein wrote:
What do you mean by console?
Console and command prompt are same?
you know, the black window in which you type commands to for example compile and run your Java code.
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|