This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: Unicode character

1 reply
Alex Boisvert
Joined: 2008-12-16,
User offline. Last seen 42 years 45 weeks ago.
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

abhinav
Joined: 2009-01-08,
User offline. Last seen 42 years 45 weeks ago.
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 © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland