Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
Beginning Java
unicode suport in eclipse
srinivas srinivasmeenavalli
Ranch Hand
Posts: 65
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I was expected to see special characters by executing below source code but not dispalyed my eclipse.
what i need to do to support unicode characters ?
public class CharExample { public static void main(String args[]){ char charA='a'; char charB = new Character('\uffff'); char charUniCode='\u0420'; System.out.println("charA="+charA); System.out.println("charB="+charB); System.out.println("charUniCode="+charUniCode); } }
Out put :
charA=a
charB=?
charUniCode=?
Wim Vanni
Ranch Hand
Posts: 96
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I've found this
article
that should help you achieve your goal of outputting unicode characters.
Code from this article:
import java.io.PrintStream; import java.io.UnsupportedEncodingException; public class Test { public static void main (String[] argv) throws UnsupportedEncodingException { String unicodeMessage = "\u7686\u3055\u3093\u3001\u3053\u3093\u306b\u3061\u306f"; PrintStream out = new PrintStream(System.out, true, "UTF-8"); out.println(unicodeMessage); } }
Cheers,
Wim
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
casting a char to an int
Compile time Difference between // and /* */
SAX Parser Issue
Format Number as Date
unicode
More...