Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: text encoding

  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts

    text encoding

    Code:
    <!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:

    Code:
    s = s.replaceAll("", "");
    s = s.replaceAll("", "");
    But as you see I get same character for both and .

    Any tip ?
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #2
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts
    Ok, obviously there is false claim, I get different characters.

    but:

    Code:
      s = s.replaceAll("ü", "");
      s = s.replaceAll("ß", "");
      s = s.replaceAll("ö", "");
    does not look very smart, any other way ?
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #3
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,763
    Thanks
    23
    Thanked 548 Times in 547 Posts
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •