Giter VIP home page Giter VIP logo

Comments (6)

simogeo avatar simogeo commented on June 3, 2024

As a workaround, I can solve the problem saving the es.js file in ISO/ANSI format.

probably, but this is the wrong way to do! ;-)
I guess the jsp files should be encoded into UTF-8 format

from filemanager.

jorgeoa avatar jorgeoa commented on June 3, 2024

I'm agree with you simogeo.

I tried to change the the filemanager.jsp pageEncoding instruction from ISO-8859-1 to UTF-8, but I get the same enoding problem, I don't know the reason...

I need a working JSP filemanager today, so I'm using this workaround, but I will try to find a elegant solution for the problem in the future :)

from filemanager.

jorgeoa avatar jorgeoa commented on June 3, 2024

Store the language file in ISO/ANSI is not a solution. Because of that, the texts print in the interface are shown with encoding problems :(

from filemanager.

jorgeoa avatar jorgeoa commented on June 3, 2024

Found a workaround.

In error function of FileManager.java, I convert the language string from ISO-8859-1 to UTF-8. I don't understand why the text is encodend in ISO, the language file is stored in UTF-8 :?

My code:

String tmp_msg = new String();
try {
tmp_msg = new String (msg.getBytes("ISO-8859-1"),"UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
errorInfo.put("Error", tmp_msg);

from filemanager.

trickydicky avatar trickydicky commented on June 3, 2024

This has been solved by changing the function which loads the text strings.

By the way, I think the encoding of filemanager.jsp is not important, so I removed it.

Cheers.

from filemanager.

jorgeoa avatar jorgeoa commented on June 3, 2024

Thanks tricky,

But I already have the encoding problem, now a bit different. Now, the authorization message is shown like this:

No est�s autorizado para usar el administrador de archivos.

Saving the filemanager.jsp file in UTF-8 instead of ASCI solves the problem.

Regards.

from filemanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.