Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8088787

[WebView] HTMLEditor don't escape accented letters

XMLWordPrintable

    • web

      Hi, I'm using HTMLEditor in my simple test application and I'm showing html text generated. I noticed that accented letters (à,è,ì, ect) are not escaped (à ect). Looking at the source code I arrived to the class com.sun.webkit.WebPage in which the method I thinked is used is this:
       

          public String getHtml(long frameID) {
                  lockPage();
                  try {
                      log.log(Level.FINE, "getHtml");
                      if (isDisposed) {
                          log.log(Level.FINE, "getHtml() request for a disposed web page.");
                          return null;
                      }
                      if (!frames.contains(frameID)) {
                          return null;
                      }
                      return twkGetHtml(frameID);
                  } finally {
                      unlockPage();
                  }
              }
          private native String twkGetHtml(long pFrame);

       

      I'm not sure if it is a bug or if this behaviour is wanted.

      Thanks

            Unassigned Unassigned
            danielejfx Daniele (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Imported: