sharepoint online – get a file with Turkish characters

I use Java with Rest API to get Sharepoint files online. It's fine, but if the file contains Turkish characters, I can not get it.

If the file name is "test.pfd", I can open the file, but the file name is "─░test.pdf", I can not. Do you know how to get the file?

    public void getTheFile(String sitePath, String path, String file) {
    try {

        String filePath = ProjectUtil.DESKTOP_PATH + file;
        Desktop desktop = Desktop.getDesktop();
        File f = new File(filePath);
        Boolean goAhead = false;

        if (f.exists()) {
            Object() options = { "Yes", "No" };
            if (JOptionPane.showOptionDialog(null,
                    "There is the same file on your desktop. Are you sure?",
                    "Cancel", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options,
                    options(1)) == 0) {
                goAhead = true;
        } else {
            goAhead = true;

        if (goAhead) {
            String siteURL = "https://" + SHAREPOINT_HOST + "/" + sitePath;

            String wsUrl = siteURL + "/_api/web/GetFolderByServerRelativeUrl('" + path + "')/Files('" + file+ "')/$value";

            // Create HttpURLConnection
            URL url = new URL(wsUrl);
            URLConnection connection = url.openConnection();
            HttpURLConnection httpConn = (HttpURLConnection) connection;

            // Set Header
            httpConn.setRequestProperty("content-type", "application/json;  charset=utf-8");
            httpConn.setRequestProperty("Authorization", "Bearer " + AUTH_TOKEN);

            // Read the response
            String httpResponseStr = "";
            InputStreamReader isr = null;
            if (httpConn.getResponseCode() == 200) {
                Files.copy(httpConn.getInputStream(), Paths.get(ProjectUtil.DESKTOP_PATH, file),StandardCopyOption.REPLACE_EXISTING);
            } else {
                isr = new InputStreamReader(httpConn.getErrorStream());
                BufferedReader in = new BufferedReader(isr);
                String strLine = "";
                while ((strLine = in.readLine()) != null) {
                    httpResponseStr = httpResponseStr + strLine;


    } catch (Exception e) {
        System.out.println("Error while reading file: " + e.getMessage());

Air Travel – Turkish Airlines: Flights with changed date / time can not be re-included

We are having problems with the take back system of Turkish Airlines and are a bit panicked.

We – a group of 6 people – booked and paid for a flight from Budapest to Ankara with a stopover in Istanbul, supposedly from this Monday (15 July), 9:05 am. The booking was made in two parts of 3 people, the problem is there with both reservations. When we tried to check in online about an hour ago (July 13th – 8:00 pm), we were amazed when the check-in page displayed the message that we had to shut down our flights again (as we have no pre-booking have received notification).

Enter image description here

So we started changing the flight and got to the point where we chose the new times:

Enter image description here

However, if we click Next to continue to the next step – presumably a summary before payment – a technical error will be displayed. We recommend to check our selection again:

A technical error occurred during flight selection. Please review your selection and try again.

Is something wrong with our rerouted flights or is this a problem on the Turkish Airlines side? What should we do if we are unable to finish our flight before the flight starts because of this error? We are approaching an event, so our top priority is to get there in a timely manner.

We tried to contact the Hungarian Customer Service, but so far we have had no luck (possibly because of the late time, even though we called them at 20:00 and they claim to be available by 20:30).

Turkey – problem with Turkish e-Visa?

There is a FAQ page on the website of the Turkish Government eVisa, on which this question appears:

I will be notified by the system that my e-Visa application can not be processed. What should I do?

What is the answer:

You can go to the nearest Turkish Embassy or Consulate to apply for a visa

You can wait 48 hours and try again, but it looks like you do not qualify for eVisa and you have to apply in the usual way.

(No, I do not know why. Maybe Turkish immigration can answer that question.)

Help with the Turkish E-Visa?

I am a Pakistani citizen with a valid visa to visit the UK. I plan to visit Turkey with my sister during our trip to the UK. But when I file an application for Evisa with my sister, they reject my application and approve my sisters.Enter image description here But if I submit separate applications for both, there is no problem whatsoever. Please help me as we want to travel together. Will there be problems if we get separate Evisas?

Turkish Airlines – Why do I get a printed ticket even though I have a cell phone ticket?

When I check in at my counter, I get a printed ticket, even though I have a cell phone ticket. This happened several times and the last flight was from Istanbul to London.

Why do you give me a printed ticket? Do you need it? Should I mention when leaving my baggage that I already have a cell phone ticket?