V
V S Rawat
I tried to convert a "single character" string to char type,
it tried converting through int, long, float but it kept on
saying "incompatible type" and/or then "inconvertible type".
why is it so, when the tutorial itself recommends the above
method?
--------------
I have eventually managed it through str1/charAt(0) and it
is giving the thing correctly, but I am worried if there are
some loophole in this method.
It is for sure that all my strings have single character
value in them.
-------------
how to get unicode/ascii code of a character assigned in a
string.
the output can be in hex or decimal.
-------------
Are there any builtin functions to convert between hex and
decimal?
-----------
how to display a non-ascii value from within java?
System.out dumps that to ms dos window, but if the value is
non-lower-ascii, then dos displays a questionmark "?" for
each such char and we are none the wiser.
say i have
String Str1 = "\u2554";
I want to see what character is represented by this unicode
code.
which is the simple and quickest method of doing that just
like System.out.print()?
of course I can go on using swing button, but I am not that
familiar with it yet to codify it on the fly.
is there a simpler method?
-Rawat
it tried converting through int, long, float but it kept on
saying "incompatible type" and/or then "inconvertible type".
why is it so, when the tutorial itself recommends the above
method?
--------------
I have eventually managed it through str1/charAt(0) and it
is giving the thing correctly, but I am worried if there are
some loophole in this method.
It is for sure that all my strings have single character
value in them.
-------------
how to get unicode/ascii code of a character assigned in a
string.
the output can be in hex or decimal.
-------------
Are there any builtin functions to convert between hex and
decimal?
-----------
how to display a non-ascii value from within java?
System.out dumps that to ms dos window, but if the value is
non-lower-ascii, then dos displays a questionmark "?" for
each such char and we are none the wiser.
say i have
String Str1 = "\u2554";
I want to see what character is represented by this unicode
code.
which is the simple and quickest method of doing that just
like System.out.print()?
of course I can go on using swing button, but I am not that
familiar with it yet to codify it on the fly.
is there a simpler method?
-Rawat