Characters not displaying properly

I can't find how to properly enter and display certain chars from my db to my jsp page.
For instace, the word "Li'l" is displaying as "Li�??�?��??l".
things like TM,R arent working either.
the "'"(apostrophe) is entering into the DB without a problem- but it wont display. The (TM) is not storing or display properly.
Is there anyway to copy text directly from wordpad into a textbox and have it store in mysql and display in jsp correctly?
Also, this might be a question for the mysql section:
If i'm doing a query like thisSELECT ID, brandName, productInformation, productName, productImage FROM blahblah.uk WHERE brandName = '" + brand + "'"; and " brand + has an apostrophe- the query screws up. Is there a way around it at all?
here is my entire DB connection code.
<%
Class.forName("org.gjt.mm.mysql.Driver");
conn = "jdbc:mysql://" + host + "/" + db + "?user=" + user  + "&password=" + pass;
Connection Conn = DriverManager.getConnection(conn);
Statement SQLStatement = Conn.createStatement();
String Query = "SELECT ID, brandName, productInformation, productName, productImage FROM blahblah.uk WHERE brandName = '" + brand + "'";
ResultSet SQLResult = SQLStatement.executeQuery(Query);
%>
<%
          while(SQLResult.next())
                 x_ID = SQLResult.getString("ID");
                x_brandName = SQLResult.getString("brandName");
                x_productName = SQLResult.getString("productName");
                x_productInformation = SQLResult.getString("productInformation");
                x_productImage = SQLResult.getString("productImage");
                thanks

May I assume since you're using ASP that you're on Windows? The only way I'm aware to be able to display Arabic characters on Windows would be to set your Windows language to Arabic. This will be somewhere in the Control Panel, but without knowing what version of Windows you're on, it's hard to be more specific.
In general, SQL*Plus is not a wonderful tool for viewing non-English data.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Unicode Characters not displaying properly after updating to 13.0.1+

    Previously, I had installed the Symbola font because certain symbols were not displaying properly in Firefox (notably on Twitter). Installing the font solved the problem for the most part (the four bit hex characters still didn't show up, but the six bit ones did).
    After updating to 13.0.1 the other day, the six bit hex codes do not show the correct symbol anymore with Symbola still installed. I even deleted Symbola from my fonts, redownloaded it (a newer version, no less), installed it, and opened Firefox, and it did not solve the issue. Like the 50 million other things that Firefox broke with the update to 13. -_-
    EDIT: This issue has since persisted with 14.0.1.

    Try to install the DejaVu font.
    *http://en.wikipedia.org/wiki/DejaVu_fonts
    *http://dejavu-fonts.org/

  • Hungarian characters not displaying properly

    What is the fix for ColdFusion MX 6.1 when it does not
    display foreign characters properly? I have 2 links one just and
    HTML page which displays my hungarian characters properly and when
    I change it to a ColdFusion Page it does not display properly.
    HTML Page
    http://www.etlsoft.hu/demo1/index6.htm
    ColdFusion Page
    http://www.etlsoft.hu/demo1/index6.cfm

    FYI I was able to solve the problem by adding this tag.
    <cfprocessingdirective pageencoding = "UTF-8" />

  • French special characters not displayed properly in discoverer 11g

    Gurus
    We are upgrading to discoverer 11.1.1.3
    I have found that French special characters (letters with accents) are not displayed properly in the discoverer tool menu.
    Example
    Sélectionner is displayed as S?lectionner.
    This doesn't seem to be a server issue as one of the tester (in U.S) is able to see the french characters displayed and ironically it is not the case in France itself where this is required.
    Please help
    Regards
    Ariv

    Pl post details of the two clients being used in this scenario - the exact OS version, browser version, browser language settings, Java version etc
    Since the accented character shows on one client , the issue is with the client or the settings on the client where the accented character is not showing correctly.
    HTH
    Srini

  • Special French characters not displaying properly

    Hi:
    I am using Weblogic 9.2, struts 1.2, JDOM,and ejb.
    I read special characters from the properties files using struts but when I assigned it to xml tags(JDOM elements) it is not showing properly in the xml tags.
              Element header = new Element("header");
              while(elementListItor.hasNext())
                   Element child = (Element)elementListItor.next();
                   String name = child.getName();
                   header.addContent(new Element(name).setText("Montant pay?", name)));
                   i++;
    Yours,
    Desperate.

    Hello,
    If you are displaying the report output as a PDF output then you need to make sure that:
    -NLS_LANG is set to French
    -the fonts used in the report are installed on the PC
    -the characters are stored correctly in the database
    -PDF subset is configured
    How to Use Font Subsetting in Reports for PDF Output (Doc ID 207711.1)
    Regards,
    Alex

  • Arabic Characters not displaying properly in SQL+ Enviorment

    Hi,
    I have Oracle 8i ,I am able to insert and view arabic characters properly from asp and asp.net application but whenever i tried to run sql scripts to fetch arabic data it displays only reverse'?'sign in place of all characters .....
    Is there any particular setting to be ..... If yes please also mention the steps.
    Bye

    May I assume since you're using ASP that you're on Windows? The only way I'm aware to be able to display Arabic characters on Windows would be to set your Windows language to Arabic. This will be somewhere in the Control Panel, but without knowing what version of Windows you're on, it's hard to be more specific.
    In general, SQL*Plus is not a wonderful tool for viewing non-English data.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Chinese Characters not displaying properly

    I pasted Chinese text into a Rolling title but not all of the characters display.  Some (not many) of them display as an x inside of a square.  All I can think is that some of the characters are not being recognized. If it matters, the text is simplified Chinese copied from a website, pasted into Notepad, then copied again and pasted into the title.
    Help is greatly appreciated.

    John,
    I see that now, but the font I selected (simsun) seems to have resolved my issue. I believe it is a bug if I can display the characters correctly on other app, especially Microsoft.  On Microsoft apps, I can select many standard fonts and the Chinese Characters display correctly.
    Thank you for the link to submit a bug report. When I get time I will submit it, and hopefully they will correct the issue. 
    God Bless,
    Mark

  • Chinese Characters Not Displayed Properly when iCal sync with Palm T5

    Hi All,
    I am having problem with the Chinese Character display on iCal. I am using iMac Intel Core Duo and Palm T5. I can read on my iMac the Chinese Characters which I typed on the iMac. Also I can read on my Palm those Chinese I inputted on my Palm. But both can't display the Chinese Characters inputed by each other. Can anyone help?
    Thanks.

    Hello,
    I assume your flash disk is using FAT16/32...
    You need to specify the character set when mounting it. On the command line...
    # mount /dev/sda1 /mnt/mountpoint -o iocharset=utf8
    To include this option in the default VFAT mount options under GNOME, launch gconf-editor, look for the key: /system/storage/default_options/vfat and add iocharset=utf8 to the list of mount options.

  • Arabic characters not displayed properly in the preview mode

    Hi,
    I am preparing a tool in arabic and all arabic characters seem to be displayed correctly in the design mode, but become illegible in the preview mode or when exported in flash (swf). Help much appreciated.
    Gregor

    Hi Gregor
    I think you're out of luck. There is no Arabic language pack for Xcelsius.
    When you're in design mode, you're using the Windows OS features, but when you try to preview or export then Xcelsius begins the process of converting the xlf to a swf. And since there is no lang pack it doesn't know what to do with the Arabic characters.

  • Why are Unicode Characters not displaying properly anymore ?

    Hi,
    I've just update my firefox Mac version 19.0 to 20.0. The big problem is I cannot see our Burmese Unicode character anymore.
    I can see burmese character at ( www.facebook.com/futurewayeducation ) with 19.0 without doing any setting but with 20.0, I am hopeless now. The page is writing with a font call Zawgyi-One. The font location is ( http://code.google.com/p/zawgyi/wiki/MyanmarFontDownload ). Now I have just one solution left which is removing this 20.0 version and use 19.0 or Switch Browser.
    Thanks.
    Zay Yar

    Screenshots are attache for reference.
    Thanks.

  • OLE Objects are not displayed properly-overlap characters and empty page

    I'm using CR4E 12 Runtime libraries to load and view reports that are created in CR designer  v10. Some of the OLE Objects (not all) are not displayed properly.
    1) A full page contains terms and conditions as ole object is not at all displayed and just shown as black image.
    2) Some data in a table (OLE Object) shown as overlapped characters.
    Any body know the reason and is there any workaround to solve this issue?
    Thankyou very much for your time.

    Your problem seems to be with the character encoding you are using for your text.  A quick google search for ColdFusion character encoding should turn up the answer.  In case you are interested in learning more:
    http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=ColdFusion_Documentation&file=00001201.htm
    Hope that helps!
    - Michael

  • Japanese and Russian characters are not displayed properly

    I have a pdf file which has both russian and Japanese characters in it. Before I install Japanese font pack, the russian characters were displayed properly but for Japanese characters Junk characters are displayed. But once  I installed Japanese font pack, Japanese fonts are displayed properly, but for Russian characters are displayed as junk characters. Please let us know if can display both font types simultaneously in a document or is there any work around for this ?

    What is your Reader version?
    If Reader X or earlier, did you also install the extended font pack?

  • Fonts Will Not Display Properly In Mail

    Messages that I am receving in Mail will not display properly. All characters are represented with square with the letter A. I attached a screen shot.
    I changed the default fonts to many different options and nothing has worked.
    Any help would be great.

    Open up Font Book and validate your fonts.  You may have a corrupt font or corrupt font database.

  • Japanese character is not displaying properly in JDialog

    Hi All,
    Japanese character are shown in parent window but not displaying properly JDialog window.
    Even JDialog Title bar is showing in Japanese properly but JLabel's and JButton text are not showing properly in Japanese.
    Anybody knows why Japanese characters are not showing properly in JLabel and JButton of JDialog window.
    Thanks,
    -Mani

    Specified font on that objects, that's why Japanese character doesn't shown.

  • Lately pdf files from the Web do not display properly; what is wrong and how can I fix it so I don't have to use IE?

    I am a professor and frequently need to open pdfs of academic journal articles from electronic databases. Within the last two or three weeks, when I try to do this using Firefox, only the first page of the pdf displays and the rest are blank. In addition, a bar appears across the top with the message "This pdf file may not display properly." So I have had to switch to Internet Explorer to open the files and do my research. What is going on and how can I fix it so I can open pdf files from the Web in Firefox and have them display properly?

    My question is simple - why would you put an application in production that has a lot of bugs? To replace a good and steady Adobe product? My customers will believe that I put a pathetic fallible form online. They are not sophisticated on computers so I just tell them to use IE. Ugh
    I must agree with pgwebgirl!

Maybe you are looking for

  • How do I force an app to stop on iPad 3

    I have an app that is grayscale out and reads downloading.....it looks like pandora but pandora is on another page working fine.   how do I get rid of this app?  it's been in this download mode for days.  it s not REALLY downloading that I can tell. 

  • Music is missing from Media files

    So I have many CD's I have copied to iTunes.  I copied them years ago.  I'm now trying to copy some of the music files from media to my phone (non-Apple) which requires me to do it from the media file location on my windows. I noticed music is missin

  • Business Partner Creation Issue-For object BU_PARTNER

    Hi CRM Experts, Need a help immediately. Currently am working on CRM 5.2. In SAP UI when I am creating a BP Type Organisation or Person system allows me to create But when i do the same in WEB UI i am having problem. In Web UI when i am selecting New

  • What is the difference between the MapViewer.war and the .ear in 11.1.1.7.1

    There are two mapviewer file sets, the mapviewer.war and the mapviewer.ear in Oracle Fusion Middleware MapViewer Version 11g ps6 (11.1.1.7.1). What is the difference between the mapviewer.war and the mapviewer.ear in 11.1.1.7.1? Which one should I in

  • Package not working

    I migrated from JDK1.3 to JDK1.4. Paths are set to bin and even classpath is set to c:\jdk1.4\lib;. The program is compiling and running fine. The problem I come across is that when I use Packages in my program the program would not compile showing t