Re: Unicode character

The Unicode value must be provided in hex form:

scala> print("\u8704")
่œ„
scala> print("\u2200")
โˆ€

alex


On Wed, Jan 7, 2009 at 3:37 PM, abhinav <abhinav [dot] vit [at] gmail [dot] com> wrote:
Hi

I am trying to print some unicode characters using their unicode values.
But I am getting some other symbol printed on the terminal.

For eg.

def main(args: Array[String]){
...
print('\u8704')
...
}

This is the unicode value for logical quantifier 'forall' but on
terminal  some  asian  language  character is printed instead.  However
, the alphabets of English language are printed correctly.

Can someone please suggest me how to get correct character using unicode
values.

Thanks.

Abhinav

Unicode character

Hi

I am trying to print some unicode characters using their unicode values.
But I am getting some other symbol printed on the terminal.

For eg.

def main(args: Array[String]){
...
print('\u8704')
...
}

This is the unicode value for logical quantifier 'forall' but on
terminal some asian language character is printed instead. However
, the alphabets of English language are printed correctly.

Can someone please suggest me how to get correct character using unicode
values.

Thanks.

Abhinav

Copyright © 2013 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland