...

View Full Version : text encoding



BubikolRamios
11-24-2012, 06:34 PM
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ 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">
<head>

<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 ?

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

but:



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


does not look very smart, any other way ?

sunfighter
11-25-2012, 03: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?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum