Ignore:
Timestamp:
2014-04-23T02:30:39+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #9906 - fix reliance on default encoding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java

    r6920 r6995  
    1010import java.io.BufferedReader;
    1111import java.io.File;
    12 import java.io.FileReader;
     12import java.io.FileInputStream;
    1313import java.io.IOException;
     14import java.io.InputStreamReader;
    1415import java.util.ArrayList;
    1516import java.util.Arrays;
     
    292293                for (File urlFile: urlFiles) {
    293294                    try {
    294                         BufferedReader reader = new BufferedReader(new FileReader(urlFile));
     295                        BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(urlFile), Utils.UTF_8));
    295296                        String line;
    296297                        while ((line = reader.readLine()) != null) {
Note: See TracChangeset for help on using the changeset viewer.