View Full Version : text encoding

11-24-2012, 07:34 PM
"-//W3C//DTD XHTML 1.0 Transitional//EN"

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css; charset=utf-8"/>
<meta http-equiv="Content-Script-Type" content="text/javascript;charset=utf-8" />

<form enctype="application/x-www-form-urlencoded" action="../jsp/old_articles.jsp" method="post" lang="en" accept-charset="UTF-8" >

I have textarea on that form and for german letters I get, that is, could do on server:

s = s.replaceAll("", "");
s = s.replaceAll("", "");

But as you see I get same character for both and .

Any tip ?

11-24-2012, 08:10 PM
Ok, obviously there is false claim, I get different characters.


s = s.replaceAll("ü", "");
s = s.replaceAll("ß", "");
s = s.replaceAll("ö", "");

does not look very smart, any other way ?

11-25-2012, 04:49 PM
You have posted in the HTML section and this isn't a html problem. "replaceAll()" is not a javascript function. It is a jquery function, but this doesn't look like jquery. What is it?? Is it your own function?