• Post Reply Bookmark Topic Watch Topic
  • New Topic

in text file '╟' is taken as '?'

 
Sushama Wagasakr
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am reading one txt file and just copying one file to other..
but that file contain one delemeter "╟" which is taken as '?' by JVM.
and while writing into file it is replacing as '?'
if I view that file on solaris machine that character is like '╟',and if I will open in vi editor it will show as '�'.
so here is the confusion how to make JVM to take that character...

Please reply as soon as possible....I will be very thankful to u...

Regards,
Sushama.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

That character is not part of ASCII (and not part of ISO-8859-1, as far as I can tell), so if you handle text containing it, you need to take care to specify character encodings, both if you read and if you write files.

What vi does to the character is not necessarily an indication whether things are going right or wrong - it may not have a proper font available to display the character.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!