Special Character not appearing

Hi,
Im getting very strange error. Im pulling some content stored in Oracle through JDBC.
When im printing that content in log, few characters are appearing as "?" (Question marks).
When im printing that content on a JSP with following lines on top of JSP :
<%@page contentType="text/html;charset=utf-8" %>
Its appearing fine and no "?" mark is appearing on JSP.
I am using an HTML to TEXT converter that simply convert entire HTML content to Text.
This is how it function. "htmlstring" is the string that im fetching from DB.
ByteArrayInputStream ba = new ByteArrayInputStream(htmlstring.getBytes());
InputStream ts = new TagFilterInputStream(ba);
<<Now do ts.read() and remove entire HTML code>>
After this conversion when im printing same content on JSP, its appearing with "?" mark.
Can anyone tell me, why its happening?Because it wasn't when simply i was displaying content on JSP.
However when i introduced HTML to TEXT converter, it has started behaving like this.

It looks like you are experiencing a character encoding mismatch. You can have a different default character encoding that your browser uses and yet another encoding when you are doing the conversion.
Looks like you are doing your conversion with the UTF-8 encoding and then displaying it with yet another encoding. That is why you need to explicitly set your character encoding to UTF-8 so the characters are displayed properly.
You can either specify a character encoding in your page like you are doing or you can force your convereter to the character encoding of your choice, like ISO-8859-1, as follows:
htmlstring.getBytes("ISO-8859-1");
Thanks,
Justyna

Similar Messages

  • Special Character not displayed correctly on Japanese OS

    Hi,
    I have an application build in LabVIEW that I want to install on a Japanese OS but some of the special character are not displayed correctly like °.
    Is it possible to tell my application to use the US ASCII table to display character? Or I need to code special case for Japanese OS?
    Thank you 
    Dany
    Dany Allard

    Hi Dany,
    It sound like tyou are trying to localize your application to Japanese. You might want to take a loot at this link here 
    Joe Daily
    National Instruments
    Applications Engineer
    may the G be with you ....

  • Special character not being converted to upper case

    Hi all,
    I have an issue with special characters and upper/lower case.
    The character "ü" is in one of the values of an InfoObject and when loading we get an error message for this value. The character "Ü" is in RSKC, but still we are getting an error when loading.
    We are converting the values to upper case in the transfer rules, but this special character is not being converted to upper case...
    We start with the value "Heüringen" and after conversion we have the value "HEüRINGEN" where we want to have "HEÜRINGEN".
    Do you have any idea why this characer is not being converted?
    Any ideas are welcome!
    Best regards,
    TMV

    Hi Praveen,
    What does this module actually do? What kind of characters will the special chars be replaced with?
    Br,
    TMV

  • How doI find a special character not listed in 'Special Characters?'

    Hi There
    I am trying to type the letter a with both a macron and an acute. I can find the o equivalent, but that's not helping me to write laudatis correctly!!
    Thank you
    Eve
    P.S.  I have tried going into system settings and looking for international (as I saw something somewhere else!) - I can't see international either!

    Esme The Rat wrote:
    I had the UK one switched on as well.. it appears that needs to be switched off
    You just need to select the right keyboard in the "flag" menu.
    Here is a picture to show you the box to check for Show Input Menu in Menu Bar, plus a picture of the "flag" menu where you select which keyboard you want to use.

  • SAPScripts - Special Characters not appearing

    Hi all,
    I was trying to maintain some text (in SO10) in Slovakian language, and I found that two characters were not being maintained : pod<u><b>&#318;</b></u>a and d<u><b>&#328;</b></u>a. The output in the printout appears as : pod?a and d?a. Is there some way to maintain characters in SAP?
    P.S.: I logged into SAP in Slovakian language and made my change, but still these two characters aren't showing

    Hi,
    Download and Install the Slovakian language in  your desktop and run the Script program
    Regards
    Sudheer

  • "TM" special character not showing up! Help!

    I have all the copy loaded in Flash (it works OK) from the
    database in ASP, but Im not showing the "™" in Flash from
    database. I have embedded ™ in the dynamic textfield and it
    didnt work. Is it the ASP I need to make it work?
    Thanks!

    Magnix wrote:
    > So I just embed %99 in Flash?
    Instead of typing in your source file the "TM" you need to
    replace it with
    URL encoding %99
    For example, I want to write this and make sure flash reads
    it correctly:
    "bang & olufse"
    In the ASP file I will write it as follow, to assure it's
    correctly displayed
    in Flash"
    %22bang %26 olufse%22
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Form builder include text special character not printed

    Hi,
    When you are editing an so10-text, you can add a SAP-symbol, (a large square by example)
    resulting in a number between brackets.
    The form builder does not recognize this as a symbol.
    It prints the number with brackets.
    How do you solve this in Form builder ?
    Thanks in advance
    Kind Regards
    Christine

    Hi,
    Strange you see the comma sign, I expected something like #. Anyway, which printer settings are you using? If you are using LOCL, try updating the SWIN device type. Is your system unicode or not? If it is unicode, check OSS notes for "cascading fonts".
    Regards,
    Suzy

  • Accented letters/special character not showing up

    I have a iphone 4 (4.1) and iphone 3g (4.0.1) and when i hold down a letter the other accented letters do not show up. I appreciate any help
    Cheers

    i just tried this on an iphone 4 running 4.1 and it worked fine - maybe you need to hold the key down longer - if that doesnt work try resetting the phone - if that faisl you can always try a restore

  • Reg: Special Character Appearing in Excel O/P.

    I am getting excel output generated via an Oracle report (CSV format). In the excel output, I am getting a special character for TAB (Chr9, a box). Since user wants to sort the data, because of this character they are not able to sort data in sheet properly.
    Can anyone suggest what could cause this special character to appear in the report output? I am looking from layout perspective also. Is this has something to do with the printing style applied to the concurrent program?
    Thanks In advance.

    I had the same problem and this is what I did, works great. You have the total control.
    function BeforeReport return boolean is
    fp text_io.file_type;
    begin
    -- creating a file name
    :CP_filename := 'C:\Gap'||to_char(sysdate,'MMDDYYHHMISS')||'.csv';
    -- Opening the file in write mode
    fp := text_io.fopen(:CP_filename,'w');
    -- writing the column headings into the file
    text_io.put_line(fp,'"Platform","Sys#","GapType",');
    text_io.fclose(fp);
    return (TRUE);
    end;
    and then where ever it is suitable, depending on the requirement, write into file by opening it in the append mode.
    function R_G_systemplatformFormatTrigge return boolean is
    fp text_io.file_type;
    begin
    --     srw.message(99,:dname);
    fp := text_io.fopen(:CP_filename,'a');
    text_io.put(fp,'"' || :systemplatform || '",');
    text_io.put(fp,'"' || to_char(:sysno) || '",');
    text_io.put_line(fp,'"' || :CF_gaptype || '",');
    text_io.fclose(fp);
    return (TRUE);
    end;
    This works great. Hope this helps.

  • Special Characters Not Displaying at Logon Screen

    Hello, my daughter set her password on her iPad using special characters and has been able log in  by holding down a certain letter on the keyboard and choosing a latin character.  This is no longer working as the popup menu doesn't appear when holding down on letters anymore.  She recently updated it to iOS8, but claims that she was able to log in at least a few time since the update.
    Is there any trick to making these special character menus appear again?  Thanks so much.

    Hello Paul,
    I once used hexadecimal coded characters like &xnnn; and they were not transformed. When coding them in decimal, everthing worked fine.
    Hth
    J�rg

  • Request.getParameter(): special character handling problem

    Hello, there:
    This should be an easy question for the gurus in here.
    I use a string attached to the url as the parameter string, which includes spaces. the system automatically converts them to %20, but when I receive them in my servlet using request.getParameter, a special character, &Acirc; appears; I couldn't proceed with it.
    I suppose this is a common problem but seems that I didn't find topics about it on this forum.
    So anyone can help? Any encoder/decoder APIs to handle it?
    Thanks a lot,
    Sway

    hi,
    escape can solve ur problem
    use js function to submit form like
    function subForm()
    var any_spcl_value ="kdfhjdf$%@#$% 2FGSFG @%@#%@# V";
    mainForm.action = "index.jsp?value="+ escape(any_spcl_value);
    mainForm.submit();
    and use request.getParameter("value");
    u ll get kdfhjdf$%@#$% 2FGSFG @%@#%@# V as it is.
    AE

  • How can I use Greek symbols in a text in Pages? Greek symbols are not in the special character list.

    How can I use Greek symbols in a Pages text? Greek symbols are not included in the special character collection.
    I need to import for example a sigma from Word or Adobe illustrator and then Pages can recognise it. I can not find it from within Pages.

    Special character palette from the edit menu does have sigmas under European ... > Greek ...
    You can do a search at the bottom of the Special Character palette. Double click on the greek capital letter sigma. You will get a lot of sigmas.

  • Problem with CONVERT_OTF, special character '-' printing not properly

    Hi experts,
    when printing PO item text; in Print Preview, text displays correctly. But in program by using 'CONVERT_OTF' FM output is converting into PDF and this PDF is send it to the PO creator through mail,   In the PDF present in the mail, the special character ' - ' is not displaying properly; i.e the special character ' - ' is replaced by '  ' space. For the text we are using Text editor and Font family is 'COURIER' , device type is 'PDF'.   And also i tried with different Font fammilies, for that it beheaves differently but not displays as it is the special character ' - '.
    Thanks and regards
    Aumprakasharya T

    Hi,
    Which device type is used to create the PDF? i.e. which deivce type is used in the OTF data that is converted to PDF? If you use device type PDFUC or SWINCF, then it should work fine. (see SAP not #999712 about unicode PDF conversion)
    Regards,
    Aidan

  • HOW WE CAN VALIDATE A FIELD THAT SHOULD NOT BE SPECIAL CHARACTER?

    HOW WE CAN VALIDATE A FIELD THAT SHOULD NOT BE SPECIAL CHARACTER?

    data : v_abcde like sy-abcde,
             v_num like '0123456789',
              v_data(60) type c.
    start-of-selection.
    v_abcde = sy-abcde.
    concatenate v_abcde v_num into v_data.
    if ur field co v_data
    else.
    message.
    endif.

  • Special character key not working

    None of the special character key is working properly. More over character which are to be used by SHIFT key are also not working correctly.

    I am using OS X 10.9.3 and Pages v5.2 and a double-click with the Magic Mouse, or a double-tap with the Magic Trackpad will definitely insert the special character of choice at the previous cursor location in Pages v5.2, or within TextEdit. You must first establish application document focus (click in it) before the double-click/tap action.
    I can double-click/tap special characters and have them insert into form text and text area fields on a web page in Safari.

Maybe you are looking for

  • Using notes on iPad: how do I prevent numbers from being displayed as phone numbers?

    Using notes on iPad how do I enter numbers such that notes thinks that they are just numbers, not phone numbers, links, or calendar events? Example: Enter the line "Number: 00012345678".  The number is highlighted in yellow, tap it and I get the opti

  • IWeb 08 pages show on the web but not in iWeb

    iWeb 08 was working fine until I attempted to update pages that were originally made in the previous version of iWeb. Although the pages display on the .mac website, I cannot load or edit the pages within iWeb. I have two files in Library>Application

  • How do I delete all album artwork v10.5.2 OSx 10.5.8

    My car stereo is having major issues with loading album artwork from my iPod. I need to remove all of the artwork and then update my iPod so it doesn't have artwork in it. I currently have 9750 items in music in iTunes so one by one really isn't real

  • Archive Generation in RAC environment.

    Gems, I have one doubt it was not able to solve from my mind i.e. As per my knowledge, 1) Every instance has its own thread so Thread is instance specific. My questions are, How the SCN will be maintained in ARCHIVES? will thread 1 & thread2 contains

  • Where To Buy A Power Supply

    Hey just wonderin if any of you know somewhere to get a cheep Power Supply becouse im building a PowerMac G5 but i need a Power Supply for my june 2004 case. caleb