Results 1 to 3 of 3
- 10-06-2011, 06:14 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 3
- Rep Power
- 0
How can JAVA Programme read ANSI codes
I wrote a programme to read texts. The texts are Yoruba texts. Yoruba writing involves a heavy use of diacritical marks. Yoruba texts also includes many symbols which are not included in the ASCII codes. The texts include: 1. ẹ́ xc
2. ẹ̀ xv
3. ọ̀ qv
4. à av
5. ọ́ qc
6. è ev
7. í ic
8. ò ov
9. ì iv
10. á ac
11. ù uv
12. ú uc
13. ó ov
14. é ec
15. ọ q
16. ẹ x
17. ṣ z
18. ń nc
19. ǹ nv
The programm is working well, except that it cannot read the above symbols. Please, how can my program read the symbols.
- 10-06-2011, 07:06 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
Re: How can JAVA Programme read ANSI codes
All those text files are encoded; an InputStreamReader wraps around an InputStream (i.e. it reads the bytes from that InputStream) and it uses a user specified decoding name to build chars from those bytes. You have to find/know the used encoding and then you're in business.
kind regards,
JosBuild a wall around Donald Trump; I'll pay for it.
- 10-07-2011, 04:15 AM #3
Re: How can JAVA Programme read ANSI codes
I'm pretty sure you mean Unicode, not ANSI codes, unless you tried to type them and ended up with the characters I'm seeing. "ANSI codes" usually refers to ANSI X3.64 terminal control sequences, which begin with the escape character (ASCII 27) followed by some other ASCII characters.
Get in the habit of using standard Java naming conventions!
Similar Threads
-
Make NetBeans use ANSI
By Pojahn_M in forum NetBeansReplies: 5Last Post: 08-05-2011, 04:36 AM -
How to run java programme automatically daily at 3PM
By trkece in forum New To JavaReplies: 3Last Post: 06-22-2011, 09:12 AM -
how to prevent users from read/write java codes in eclipse?
By anthrax in forum EclipseReplies: 1Last Post: 07-25-2009, 06:53 PM
Bookmarks