GithubHelp home page GithubHelp logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
Screenshot before post usgin ajax submit with jquery plugin (the last one was 
wrong ^^')

Original comment by jyoshiriro on 16 Nov 2009 at 10:36

Attachments:

from struts2-jquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024

Original comment by johgep on 17 Nov 2009 at 7:56

  • Changed state: Accepted

from struts2-jquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
did it work when you specify the charset in your form?

<s:form action="myaction" acceptcharset="ISO-8859-1">

Original comment by johgep on 17 Nov 2009 at 12:42

from struts2-jquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
I tried to use acceptcharset="ISO-8859-1" but I got the same problem.

Original comment by jyoshiriro on 17 Nov 2009 at 2:00

from struts2-jquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
The showcase in my environment shows the parameter correctly.


Original comment by johgep on 17 Nov 2009 at 3:06

Attachments:

from struts2-jquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
I don't think so...
See the diference between jquery plugin and dojo plugin.
In your showcase, try to use the result in a form and you will see the "crazy"
characters.

Original comment by jyoshiriro on 17 Nov 2009 at 3:43

Attachments:

from struts2-jquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
Use the HTTP Fox plugin with the Firefox to watch this

Original comment by jyoshiriro on 17 Nov 2009 at 3:44

from struts2-jquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
I found that this bug occurs when using the property "struts.i18n.encoding" 
equals to
"ISO-8859-1". If not using this, NO BUG ;)

But... I need to use this property with this value in my project :(

Original comment by jyoshiriro on 25 Nov 2009 at 10:55

from struts2-jquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
Please can you try to set an Global AJAX Option in your head area?

    $.ajaxSetup ({
        contentType: "application/x-www-form-urlencoded;charset=ISO-8859-1"
    });

Original comment by johgep on 8 Jan 2010 at 10:04

from struts2-jquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
I have the same problem!

Original comment by [email protected] on 25 Feb 2010 at 6:12

from struts2-jquery.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 21, 2024
Not a plugin problem. This is a Jquery problem.

When using Ajax, Jquery always uses UTF-8 submit. So the solution for user that 
need
ISO-8859-x charsets is:

1. Do not set struts.i18n.encoding to ISO-8859-x. Use utf-8 (or omit this 
property,
because utf-8 is the default)

2. Use the page directive 
<%@page contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
into ALL JSP files of your project.

Doing ths steps all special characters will be ok in your project.

Original comment by jyoshiriro on 31 May 2010 at 3:06

  • Changed state: WontFix

from struts2-jquery.

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.