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

    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 online now Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    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,

    The only person who got everything done by Friday was Robinson Crusoe.

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

    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