Bookmark Topic Watch Topic
  • New Topic

how to display special characters

 
priya pratheepp
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am doing one program which read serial port data (for bar code reader) using java application.

My program is working well and reading serial data but it is not displaying special characters.When i read through hyperterminal i can see all special characters but when see data throught the output of java program these special characters are missing...

I don't know i am doing something wrong in stream or ???

My code is

code:
--------------------------------------------------------------------------------





Please help

thanks
 
Campbell Ritchie
Sheriff
Pie
Posts: 50168
79
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please make sure to put newline or enter when you are quoting code, otherwise it can get hard to read.

Different fonts vary in which characters they can display; try this Wikipedia page. Whichever font is used on the Windows command prompt has a very restricted range of characters, so even � won't display correctly, whilst the shells on Linux desktops will display all sorts of odd characters. So check which font and display you are using first.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Report post to moderator
See http://www.coderanch.com/t/385391/java/java/serial-port-reading
 
    Bookmark Topic Watch Topic
  • New Topic