[mingw - Java] charset support

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[mingw - Java] charset support


Read and respond to this message at:
By: mol1111

Hello, I've tried to compile this simple code:

import java.io.*;

class BMEdit {

   public static void main(String[] args) throws Exception {
      BufferedReader reader = null;
      try {
         reader = new BufferedReader(new InputStreamReader(new
FileInputStream("bm.src"), "UTF-8"));
      catch (FileNotFoundException e) {
         System.out.println("Nemohu otevrit soubor!");
      String line = reader.readLine();
      while (line != null) {
         line = reader.readLine();


it works OK with GCJ/Linux and SunJRE/Windows, but GCJ/Windows converts all
characters into question marks. I've tried MinGW gcj 3.4.2 and 3.4.4

You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:

This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at: