• encoding="windows-1251"

    By Anton V Mikhilov 2 decades ago

    WIll I have to recompile java project with right encoding?

    • Should be a setting on the serializer

      By Peter Narlund 2 decades ago

      Give me 2 hours and i will post a new release.



      Peter Närlund

      http://dominopatrol.net

    • Do You know how to code it?

      By Peter Narlund 2 decades ago

      I have made the change for the File serializer like this:



      PrintWriter out = new PrintWriter(new BufferedWriter(new java.io.OutputStreamWriter(new java.io.FileOutputStream(filepath), getContentEncoding())));



      out.print(xml);

      out.flush();

      out.close();



      But I don't know how to specify the encoding for The HttpResponse. Its coded like this:



      PrintWriter out = res.getWriter();

      out.println(item.getXml());

      out.flush();

      out.close();



      Do you know how to change it to implement encoding?



      Peter Närlund

      http://dominopatrol.net

      • Encoding for The HttpResponse works fine

        By Anton V Mikhilov 2 decades ago