Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Illegal character

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Illegal character


    I found this on google
    vb.net - Illegal Character when trying to compile java code - Stack Overflow
    But don't know what streamwriters or writealltext overloads he is talking about.


  2. #2
    Junior Member
    Join Date
    Mar 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Illegal character

    Already solved it myself. Thanks for not helping me.

  3. #3
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: Illegal character

    Quote Originally Posted by Tank314 View Post
    Thanks for not helping me.
    Ok, good to know you've solved it, but don't be so bloody damn rude!
    Everyone on this forum helps one another, when and if they have the time.

    People here aren't paid to do this, they do it out of generosity and use up their own time to do it.
    The fact is, if you structured your question better with greater details, instead of "I found this on google and i dont get it + random image" people
    would have been more incline to help you.
    There are others on this forum who need help, so a lot of people don't have the time to
    follow links and read up on what you don't get.

    Anyway if you're so much better, and if the actual question allows for it, how about you post your solution for other people who might have a similar issue.
    Just my 2c.
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

  4. #4
    Junior Member
    Join Date
    Mar 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Illegal character

    Ow cool people here talk. I thought no one will respond to this topic ever. We got some progress going in our communication skills eh?
    Anyway the problem was caused by BOM
    Byte order mark - Wikipedia, the free encyclopedia
    It's an invisible thing in the beginning of a text file that says that this file is encoded in UTF.
    I simply changed the encoding in Notepad++ to ANSI and saved it.
    You can also change it to UTF but without BOM as you can see on picture.

    I wish people would be as helpful to me as I am to them.

    Ok, good to know you've solved it, but don't be so bloody damn rude!
    Everyone on this forum helps one another, when and if they have the time.

    People here aren't paid to do this, they do it out of generosity and use up their own time to do it.
    The fact is, if you structured your question better with greater details, instead of "I found this on google and i dont get it + random image" people
    would have been more incline to help you.
    There are others on this forum who need help, so a lot of people don't have the time to
    follow links and read up on what you don't get.
    The picture was enough to understand what the problem was if they had a solution. Unless of course person has brain damage then he should be locked up eh?
    Last edited by Tank314; March 12th, 2011 at 09:23 AM.

  5. #5
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: Illegal character

    Granted following the link and reading through joins the image and text together, but "Image + But don't know what streamwriters or writealltext overloads he is talking about." didn't make for good question structure IMHO.

    Quote Originally Posted by Tank314 View Post
    Unless of course person has brain damage then he should be locked up eh?
    That didn't even make a particle of sense either, please refrain from using derogatory comments.

    Thanks for the solution and be sure to mark this thread as SOLVED using thread tools.
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

Similar Threads

  1. illegal start of expression error!!!!
    By aks.1393 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 14th, 2011, 08:47 AM
  2. Illegal start of type?
    By mjpam in forum What's Wrong With My Code?
    Replies: 5
    Last Post: September 9th, 2010, 03:47 PM
  3. Illegal start
    By hing09 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: March 25th, 2010, 05:23 PM
  4. The character '' is an invalid XML character exception getting
    By sumanta in forum What's Wrong With My Code?
    Replies: 5
    Last Post: January 9th, 2010, 12:13 PM
  5. Illegal Start of Expression Error. Any help is appreciated.
    By SKhoujinian91 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: December 8th, 2009, 12:57 AM