Problem in encoding special characters

Hi folks
In my jsp iam going to populate special characters (<>(*&), it is
working fine, but if i substring that one to certain limit(for ex:10)
for example if i give like --> &<> to populate in jsp it is
taking as --> &<> and it is going to substring and it is
taking upto--> &<&
but the xml parser not able to parse and thrown NotWellFormed exception
how can i overcome this one.
Advance appreciation for any ideas..
-Naresh

Thanks we'll check into it.

Similar Messages

  • ### Problem in retrieving special characters with Oracle 9i JDBC drivers

    hi,
    We are having some problem with retrieving special characters like '�' from the database.
    Our application is using JDK1.3.1 with Oracle 9i at the back end(Version: 9.0.1.0.0). We are using oracle 9i thin drivers (classes12.zip) for database interaction.
    To relieve the data from database we are using PreparedStatement in two ways
    1. Creating a preparedstatement from connection object without any parameters and then retrieve the
    data using it. This gives the results in correct format i.e. special characters like '�'
    2. Create the preparedstatement by passing the following parameters.
    i) ResultSet.TYPE_SCROLL_INSENSITIVE
    ii) ResultSet.CONCUR_READ_ONLY
    In this case we are not able to retrieve the special character like '�' correctly. Instead the ResultSet
    returns 'h'
    I think this is the problem with Oracle drivers. Does anyone have any information about the mentioned problem.
    rgds

    I don't know exactly (because I am using JDK 1.4 with ojdbc14.jar where these problems seem to be rare...) but you may consider this:
    1. Add nls_charset12.zip to your classpath to ensure that the encoders are present (may or may not help)
    2. Swith to JDK 1.4, and do this:
    Instead of String s = getString(column)
    use
    byte[] bytes = getBytes(column);
    ByteBuffer bb = ByteBuffer.wrap(bytes); // in package java.nio
    CharBuffer cb = Charset.forname("ISO-8859-x").decode(bb);
    String s = cb.toString();
    The latter method allows you to perform the encoding/decoding manually.
    3. Change the character encoding in the database to unicode upon database setup.
    4. Try playing with NLS parameters (alter session ...)

  • Problem with Icelandic special characters on Mac

    Hello
    I am working on a Flash publication for students, and I want it to run on Mac as well as PC. Everything goes fine, except a problem with three special characters in my language, Icelandic. I am working on a registration and login page where I am using text boxes and text input boxes. Everything looks correct on PC, but on Mac the characters Þ Ð Ý are lost.
    I have tried different fonts etc.
    Any idea what is wrong?
    Jónas Helgason

    Hello Jónas,
    Did you ever figure this out ?
    I have a similar problem except only with two letters (both upper and lower case).  These two Icelandic letters can't be entered into a Flex TextInput box in the Flex apps I am creating when they are loaded on a Mac.  The letters are known as &Eth, &eth, &Thorn and &thorn in HTML terminology.  Typing these characters on the keyboard results in the following:  { [ ? /
    However I can copy the characters in question from some other app like TextEdit and paste them into a TextInput box in my Flex app and all is well, they show up correctly.
    This happens regardless of the Mac browser used and the Flash plugin version used (have tried both 9 and 10) and also happens in the standalone Flash Player application.
    Does anyone have any idea how to fix this or is this a bug in Flash Player ?  This is really annoying as it makes text input into Flex apps on Icelandic Macs very difficult.
    There must be something wrong with the mapping of keyboard key codes into character codes on the Mac that is causing this.
    Btw, I just heard from a friend that this problem does not exist in MacOS 10.6.  I am running 10.4 and have tested this on 10.5 and it exists on both of those OS versions.
    Rgds,
    Hordur Thordarson
    Lausn hugbunadur
    http://lausn.is

  • Dreamweaver still encodes special characters in URL - Bug?

    Dreamweaver 6 is still encoding my special characters when I enter a URL through the control panel AND hit enter. When I paste the link in code view or just paste it in the control panel Link field without hitting Enter, no formatting occurs.
    I have the setting under Code Rewriting in Preferences set to "Do not encode special characters", but regardless the reformatting occurs whenever I hit enter in the Link field in the Control Panel.
    For example:
    The link I'm pasting in is a dynamic one and is set to %%DC%%
    If I just paste the link into the control panel then click elsewhere the link is set and no formatting occurs. If I paste it in, then hit Enter the URL changes to %Ü%%
    Is this a bug or am I doing something incorrectly?

    I just tried it and it's happening in both.
    How it's occuring to me:
    - Open a new or old document.
    - Type in a random set of letters, highlight, then click inside in the Link field on the Control Panel
    - Type %%DC%%
    - Click off the random set of letters, and in code view the Link is still set to %%DC%% (so far so good)
    Now if you click back onto the random letters that are now linked, you'll see that the URL in the Link field now changes to %Ü%%, but the actual link in Code View remains %%DC%%.
    - Now click inside the link field in the control panel, but don't type or change the URL.
    - Click somewhere else to move the cursor out of the control panel
    - The link is now set to %Ü%% in both Code View and in the control panel

  • 'Do not encode special characters' preference not working

    I have the preferences in Dreamweaver set to "Do not encode
    special characters in url'. However, every time I paste a url in
    the properties box, when I go to the source code, Dreamweaver has
    encoded the special characters, especially the "&". Is there
    another setting I have to change somewhere, or is there an update
    that fixes this?
    Thanks.

    "Jade73" <[email protected]> wrote in
    message
    news:fcbroh$7ih$[email protected]..
    >I have the preferences in Dreamweaver set to "Do not
    encode special
    >characters
    > in url'. However, every time I paste a url in the
    properties box, when I
    > go to
    > the source code, Dreamweaver has encoded the special
    characters,
    > especially the
    > "&". Is there another setting I have to change
    somewhere, or is there an
    > update that fixes this?
    You can find updaters for dreamweaver here
    http://www.adobe.com/support/dreamweaver/downloads_updaters.html

  • Problems with Turkish special characters

    Hello!
    We are producing Oracle Help with WebWorks Publisher 2003 Professional for FrameMaker. There are some problems with the Turkish version of our online help: The Turkish special characters (for example the dotless i) aren´t displayed correctly in the navigation panes TOC and index. They are replaced by other characters (for example by a "y")
    Has anyone an idea how to solve this problem?
    Thank you very much.
    Kind regards,
    Miriam Rassenhofer

    Miriam,
    What encoding are the TOC and index XML files being generated in? You should use UTF-8 for the minimum of problems. I presume WebWorks has an option for this. Other than that, make sure the top of those XML files has the proper XML declaration with the encoding:
    <?xml version="1.0" encoding="UTF-8"?>You may want to try opening the XML files in an XML-aware text editor to ensure they look right there (JDeveloper is one such editor).
    If all of that is working, post back and we can talk offline about getting a snippet of one of those XML files for us to look at.
    -brian

  • GoLive CS2 doesn't seem to encode special characters - help!

    If you've recently upgraded to CS2 and are having trouble with HTML entities for special characters, see this FAQ topic:
    FAQ 11.11 - Special Character Encoding Problems (CS2)
    Looks like this is going to be a recurring topic for a while as people migrate to CS2, so I'm making this a "sticky" topic at the top of the forum (thanks Martin).

    Thank you all for your posts on this issue. I need to point out a few things.
    1. As a novice, I had assumed that "special characters" included all non-standard characters (those not included in the Basic Latin character set and the Latin-1 Supplement set), and that therefore, all the "other" Unicode characters were special characters. As a result, I had assumed that the original post about Special Characters did indeed have a connection to Unicode input methods. (In fact, I am utterly in the dark as to why it is that it does not. But being a novice I believe you when you say that "special characters" and Unicode characters are two unrelated things, although I have no idea what the difference is. But, for letting me know that there is a difference, for that I truly thank you.
    2. I have read and re-read my comments from earlier and fail to see any "flaming" in it of Nate. Yet the rest of you see it clearly, so it must be there. It must be very disappointing for you to try so hard to help others only to be confronted with someone of ill-manners blasting you for your best efforts. I am truly sorry that I have in my ignorance and in my own frustration caused you to feel this way. Furthermore, since his statements had nothing to do with the issue that is so vexing to me (as you have now shown me), it was completely inappropriate for me to be upset with his answers.
    3. I remain very frustrated with not being able to find an answer to this problem of Unicode entry. I share Dee Bolland's aggravation when he talked about "... patronising people saying 'Didn't you know that?' blah blah." and when he said, " Please don't say 'It works for me!' :< ." When I first read Nate's statement of what to do about special characters, my spirits were excited with hope that it would solve my Unicode issues (because I thought he was talking about that). I was hopeful that I had missed something simple. When I tried it and it didn't work for my problem, I was very disappointed. This is the same frustration that I had when I read Rob Keniger's statement to me that the program can accept input in Source view. I jumped at this with hopeful anticipation, only to be totally and utterly disappointed once again--because it doesn't work for me. I pasted the Unicode text that I had posted above ( ×ֲש×ֶר ×Ö¹× ×Ö¸×Ö·×Ö° ×ַּעֲצַת רְש×ָעִ×× ) into source view, and all I got was the following: "
      " (I've included the tags so you can see the space). In other words, once again my high hopes are dashed and I am left feeling stupid (you say it works for you) and angry such a great program that does so many fantastic things can't do the basic things I want it to do. So, yes, I remain infuriated by the situation, by my inability to get the program to do what (I thought) you all had said it can so easily do. And yet (as I stated earlier in my post to Nate at which he took offense): "I do hope I am missing something simple and that the error is totally mine. However, I have yet to see any directions or examples that will solve the problem. Please, if you know of how to make this work, let me know. I will gladly confess my error in doubting you, if you can show me I am wrong by doing it right."
    So, since my post was not germane to the discussion, I will now bow out of this one. Thank you so much for your efforts to help, though.

  • Problems with using special characters in Interactive Report Search

    Hi!
    I am currently developing an Application on Application Express 3.1.2.00.02 including a page with an Interactive Report, facing the problem that I cannot use special german characters in the Searchbar.
    So if i try to find a name like 'Schröder' the created Filter looks like this 'Schröder' and i won't get any valid search results. By the way the rest of the application supports these special characters like using them in Buttons or any other Page elements.
    Does anyone have a clue how to fix this problem, because it's driving me nuts ;)
    Thanks in advance
    Philipp
    Edited by: philipp_m on 10.06.2009 11:15

    Does noybody have a clue how to solve this problem. I tried to find out where the Problem occures. The Ajax Request looks like this
    f01     contains
    f01     Schröder
    f01     15
    p_flow_id     100
    p_flow_step_id     50
    p_instance     3176950818119673
    p_request     APXWGT
    p_widget_action     QUICK_FILTER
    p_widget_action_mod     ADD
    p_widget_mod     ACTION
    p_widget_name     worksheet
    p_widget_num_return     15
    x01     14175446766823030
    x02     14176526259823035
    So I guess it has to be inside the Javascript file (apex_ns_3_1.js). I hope someone can help me.
    Bye
    Philipp

  • Problem with german special characters in APEX

    Hi,
    we have a problem with all the special characters in german language in our Application.
    APEX version 3.1.0.00.32 is installed on a oracle database 9.2.0.6.0
    The nls_characterset of the database is: American_America.WE8ISO8859P1
    We have modified the wdbsvr.app file on our HTTP-Server like it's shown in the installationguide for APEX and have set the nls_lang parameter to American_America.AL32UTF8.
    If I look at the source code of the html-pages of our application, there are already the following settings in the header of every page:
    meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
    With this settings all the german special characters like ä ö ü are not shown correctly in the browser.
    What can I do that the pages are shown correctly?
    Thanks for help!

    Hi Petra,
    ok, so my guess was correct. So the solution is to set the charset attribute in the HTML header to "charset=UTF-8". This is actually the way it should be. But I'm wondering why it is not in your case? Are you using a custom template for the page(s) in question where the charset attribute is set to a custom value? The meta tags in the HTML header are usually set by/through the #HEAD# substitution string in the header definition section of the page template, cp. one of the page templates in Shared Components --> Templates. And as far as I know you are not able to change this substitution string, you can only switch the inclusion on/off with the option "Include Standard CSS and JavaScript" in each page definition. (I might be mistaken, though, I'm quite new to APEX...)
    Regards
    Frank

  • Mysql problem with german special characters

    hi,
    I wrote a software and it worked quite good, but after I installed it on a new machine with j2se 1.4 I've problems with the german special characters.
    this code works good on the old machine (jdk 1.3.1) and prints the wanted characters like �,�,�.
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    java.sql.Connection conn;
    conn = DriverManager.getConnection("jdbc:mysql://localhost/testdb?user=testuser&password=xxxx");
    Statement s = conn.createStatement();
    ResultSet r = s.executeQuery("select something from testtb where id='1'");
    r.first();
    System.out.println( r.getString(1) );
    but on the new machine (j2se 1.4) I only receive the character ?.
    I updated my org.gjt.mm.mysql to the current MySQL Connector/J 3.0.9 and added
    conn = DriverManager.getConnection("jdbc:mysql://localhost/testdb?user=testuser&password=xxxx&useUnicode=true&characterEncoding=ISO-8859-1");
    but I've got still the same problem.
    Thanks in advance
    Markus

    with "wanted characters like �,�,�"
    I meant: like &#x00E4;,&#x00FC;,&#x00F6;

  • Jar (or Zip) file with problems in accents, special characters

    Hi! I've a servlet that creates a jar (or zip) file and then send it. My problem is that when I create an entry in which the filename has special characters such as accents, when I unjar or unzip de file, it brings a lot of garbage characters. For example, the nex entry:
    Ex�menes.doc
    when unzipped is:
    Ex?�menes.doc
    I've tried a lot of things:
    -Setting the locale to ES, MX
    -Replacing all the letters with special characters with its unicode (like s.replace('�','\u00E1')
    -Trying to convert it to UTF8 (new String(path.getBytes(),"UTF8") )
    -Replacing the file separator char (according to a workaround that I found in the bug database)
    But nothing of this worked, alone or together. I've read that this is (or was) a bug in the API, but don't know if a solution has been found.
    Any help will be greatly appreciated!

    It's not clear what you are asking. Maybe this will help
    http://www.cfdev.com/code_samples/code.cfm/CodeID/83/Java/Simple_Ant_build_xml_Build_Task

  • Problems displaying french special characters

    Hello,
    we are developing a multi-lingual WebDynpro application. The languages are set correct and the translation for all parts (portal, xls-files) works fine. Except the correct displaying of WebDynproResourceBundle-files.
    Example:
    We use the french property file with the content:
    Enl\u00c3\u00a8vement
    When calling this value, it displays:
    Enlèvement
    instead of
    Enlèvement
    I already tried to set the jvm system parameter for encoding to latin1 and latin2. But this didn't help.
    Does anybody know, what parameter I have to set to have this french special signs displayed the right way?
    Thank you in advance.
    Matthias

    Yes, I use UTF-8. I think this is the default-value, isn't it?
    They are displayed wrongly, when executing the WebDynpro application. Inside the NWDS editor the display is like that:
    example:
    editor:               language:  browser:     correct
    gel\u00f6
    scht de gelö
    scht ok
    Enl\u00c3\u00a8
    vement fr Enlè
    vement no!
    As you can see, it works fine for german special characters, but not for french, czech and some other languages.
    Thank you

  • Problem in reading special characters � Microsoft symbols.

    Hi All,
    I have a text field where user can enter some string and search. Unusually/unfortunately users can copy/paste text from ms-word file and search for that entry in the database. Here they can even copy ms-word special symbols such as ellipsis (�), em dash(�), en dash(�). Since database has such (special character) entries we cannot restrict them from doing this (after all that is the requirement).
    Now the problem is when I read the text value in servlet/jsp I find that those special characters are replaced by question marks(?). Because of this database return �no rows found� though there are entries.
    What I have observed is when I read the ASCII value � (int)char I am able to get proper value. Using that I am having if else block to replace the question marks with proper symbols. But is there a direct way to do this? I even tried converting the string to another character set type string. But no luck.
    (Also when I print the text value to a JSP, I can see proper vales through Internet Browser.)
    Below is the sample program(read_n_print.jsp), sysout prints question marks in console, but JSP/HTML shows proper value in browser.
    <html>
    <%
         String value = request.getParameter("special_text");
         System.out.println("value " + value);
         if(value != null){
              byte[] bytes= value.getBytes();
              try {
                   String output = new String(bytes,"ISO-8859-1");     
                   System.out.println("output " + output);     
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    %>
    <head>
    <title>Insert title here</title>
    </head>
    <body>
    <form method="post" action="./read_n_print.jsp">
    <input type="text" name="special_text" value=""> <input type="submit" value="Go" > <br>
    <font size="8">Value entered is <%= value %></font>
    </form>
    </body>
    </html>

    Hi DrClap,
    Thanks for your reply.
    That article was helpful in understanding character conversions. And it works fine for JSPs.
    But when I tried to apply the same in JSF it does not work. May be this is not the right forum to dicuss JSF related things. But if you know how pageEncoding and contentType can be mentioned in JSF. I am using myfaces and I have tried <h:form id="SearchForm" acceptCharset="UTF-8" accept="text/html;charset=UTF-8">. Didnt work....

  • Spanish Dictionary and problems with spanish special characters

    I need a spanish dictionary, with all spanish words. I know that your priority are france, spanish, germany and Italy. So, the component has problems with spanish special words, this problem was notified before.
    Have you ready something? A new version?
    Thank you for your time.

    For the special character issue, you can check the reference:
    http://forums.adobe.com/message/2430501

  • Problem with norwegian 'special characters' (æøå) in LaTeX

    Having installed just about every latex-package in the repos I still cant get this to work. This is what I have in my .tex file:
    \documentclass[12pt,norsk,a4paper]{article}
    \usepackage[norsk]{babel}
    \usepackage[latin1]{inputenc}
    \usepackage[T1]{fontenc}
    \begin{document}
    Testing æøå - ÆØÅ
    \end{document}
    Any suggestions?

    What characters are you trying to put into math mode?
    Generally, with regular LaTeX, you can't put special characters in math mode. You need to use the LaTeX symbol commands instead. For example, use \rightarrow and not →. The only exception would be if you were using XeLaTeX rather than regular (pdf)LaTeX, which generally has better Unicode support, especially if you had loaded the unicode-math packge: but that's still considered in beta status, I believe.
    You can also escape to text mode inside math with the \text command from the amsmath package, e.g., $\text{ÆØÅ}$ should work.
    Last edited by frabjous (2010-09-17 04:12:07)

Maybe you are looking for