Results 1 to 3 of 3
  1. #1
    Toluwase is offline Member
    Join Date
    Apr 2011
    Posts
    3
    Rep Power
    0

    Default 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.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,520
    Blog Entries
    7
    Rep Power
    20

    Default 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,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default 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

  1. Make NetBeans use ANSI
    By Pojahn_M in forum NetBeans
    Replies: 5
    Last Post: 08-05-2011, 03:36 AM
  2. Replies: 3
    Last Post: 06-22-2011, 08:12 AM
  3. Replies: 1
    Last Post: 07-25-2009, 05:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •