Problem with with characters being interpreted wrong

Hi,
I am developing a website and currently when a search is made, all the occurancies of an apostrophie or a hyphen are being shown as a question mark. And the int value of them is -1.
I think the person who put the content into the browser editor for the pages copied and pasted from say microsoft word and there has been some encoding issue which has prevented it from being displayed properly.
Does anyone know of a solution for this? I have been trying to find a way to make sure they display as they should for days now
regards
chris

sorry, what i mean is that i have a Java String relating to some snippet from a web page ( a search teaser if you like) on a results page, ok?
However some of the characters seem to have their intValue() as -1, and are of type 12, which in java means whitespace. This is the case for apostrophies and hyphens, although I feel that these have been taken from maybe a word document or equivalent as the web page content as they are not treated like an ASCII apostrophie or hyphen
regards
chris

Similar Messages

  • HT4111 Logitech K810 UK layout problem with @ and " being the wrong way round.

    I have tried this keyboard on Windows 7 devices and they work just fine, but on IOS7, either the first version or the version released today, it remains the wrong way around - i.e. US spec.

    Hi,
    I have a problem with the same keyboard when I start up and hold the ALT key you can select a startup disk this is not working by my keyboard when I use a old keyboard I'ts working again do you have that problem also.
    Best regards Garry

  • TS4040 I assumed this would help my problem with not being able to open apps like Preview or TextEdit since I installed Mountain Lion. Instead, first I'm prompted to enter a password, then once I do that, I get an error box telling me the Library needs re

    I assumed this would help my problem with not being able to open apps like Preview or TextEdit since I installed Mountain Lion. Instead, first I'm prompted to enter a password, then once I do that, I get an error box telling me the Library needs repairing. So I click on Repair, and once again I'm prompted for a password, which I enter, then the same error box opens, and so it goes. Can anyone help me with this problem? I'd greatly appreciate it.
    Thor

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Step 1 should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary, and if everything is working as expected after step 1.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • HT201364 My 13 inch Macbook pro w retina will not install/download OS X Mavericks because it says I do not have the requirements in order to install it. I purchased my Mac this past month on 11/20/13 so i do not have a problem with it being an older versi

    My 13 inch Macbook pro w retina will not install/download OS X Mavericks because it says I do not have the requirements in order to install it. I purchased my Mac this past month on 11/20/13 so i do not have a problem with it being an older version. Please help. This is my first computer so i dont have any experience on how to fix this.

    You can't install the App Store version of Mavericks because your model needs a special version. If you ever need to reinstall it, boot into Recovery.

  • I heard that there was a problem with Apple being vulnerable to Hackers. Has anyone seen an update for this issue? My IPad received the update last night but I have not seen anything for Safari.

    I heard that there was a problem with Apple being vulnerable to Hackers. Has anyone seen an update for this issue? My IPad received the update last night but I have not seen anything for Safari.

    Mac OS X 10.9.2 was released today for this issue and others. Earlier versions are not affected.
    See this Apple article - http://support.apple.com/kb/HT6114
    You can use the Mac app store to do the update or download it directly from here - http://support.apple.com/kb/DL1725
    Best of luck.

  • Has anyone had problems with iCloud being blocked by corporate web security?

    Has anyone else encountered problems with iCloud being blocked by the web-security on company computers?   I never had any problems with me.com, but now it appears I will be unable to check my mail via any computer at work. 
    Since iCloud is a portal for high-volume image and file sharing, I can understand why the site would be blocked, but it's very frustrating that this possibility would not have been anticipated, and an alternate web-mail site been set up.  Otherwise many me.com subscribers may be left unable to use the iCloud web-mail portal via computers at work or at internet cafes that may block access to potentially risky websites.
    Has anyone figured out a back door to this problem? 

    I dont beleive its an iOS 5 Issue - i think its hardware...
    Simply because i have been running iOS 5 beta's since june and there were no issues with my iPhone 4.
    When i installed the GM on my iphone 4 (which is the same build as the public release) there were no issues with charging in my vehicle.
    Now, charging my iPhone 4S in my car is practically impossible.
    when i plug mine in, it will display the "Plugged" symbol on the battery display but not actually charge. the battery will still decrease.
    then it will randomly "disconnect" and not register that it is plugged in. then appear to be plugged in, then not, then plugged in, then not.
    This will repeat over and over again without actually charging and the charger being in the socket throughout.
    however yesterday i left it plugged in and my battery was 9% and after the strange plugged-in behaviour i noticed it was charging normally after about 20 mins in the car.
    But when i did the same journey time today, the battery wouldnt register at all.... charging has only been successful ONCE since 14th October on the iPhone 4s
    No idea whats up with it...
    anybody else?

  • Is anyone having a problem with adobe being slow?

    is anyone having a problem with adobe being slow?

    Adobe pro XI; it takes 20 seconds to go to the next page or even longer to open.

  • Weird problems with CSS being applied to JSF pages

    I have this really weird problem with my CSS rules being applied to my JSF pages. My CSS rules don't get applied unless one of the following two things happen:
    - A page is reloaded (by redirecting to itself, or if there were validation errors)
    - The previous page in the history had the same relative reference to the same CSS file.
    If a page is newly loaded, and the previous page did not have that same CSS reference, the CSS styles will not show up. Also, if the above is true, and the page is reloaded by JSF, the CSS styles show up.
    Now, my problem could be solved if I put all JSP files in the same level, but the display of the first page would still be without the CSS style applied.
    Is this known behaviour? And if it is, does it have anything to do do with the way JSF handles URLs (always one level back)? Help and input is kindly appreciated!

    Dude,
    I tried the same
    <link rel="stylesheet" href="<h:outputText value="#{facesContext.externalContext.requestContextPath}"/pages/css/default.css" />
    and I got the following Jasper exception.... pointers plz ??
    =============================================================
    2005-08-24 14:18:55,937 [http-8080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[mydemo].[FacesServlet] - Servlet.service() for servlet FacesServlet threw exception
    org.apache.jasper.JasperException: /myproj/eventCrit.jsp(8,78) Unterminated <h:outputText tag
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:130)
         at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1049)
         at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1367)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1564)
         at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1793)
         at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1060)
         at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1367)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1564)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    =========================================================

  • Petition: problems with characters in mail sent to Windows computers

    Sign this petition by replying to this thread if you have problems with garbled characters when sending e-mails to Windows computers. Let Apple know It's a huge problem for non-English e-mailing customers and there is no way to definitively fix it.
    I'll start it off:
    Christoffer Du Rietz
    PowerBook G4   Mac OS X (10.4.7)   17" last generation G4

    I'm not interested in knowing the gory technical
    details, I want Apple to fix the problem. The problem
    have existed for years. Non-english speaking Mac
    users run a high risk of sending e-mails that look
    like pure garbage on computers that use Windows. This
    does not help when trying to convince people that
    Macs are superior.
    I want Apple to fix Mail. Because it is
    2006!
    Your views are reasonable, but you need to send them to Apple, not just to the other users trying to provide help with problems in these forums. The channel for this is
    http://www.apple.com/macosx/feedback/
    You could also consider providing some feedback to MS. The longstanding bugs in Outlook that cause these problems represent really second-rate programming (even if it makes sense for Apple to somehow cater to them in Mail's behavior).

  • Txt to xml. Problems with characters(&, , ',...)

    I want to generate a xml file with text from a txt file but i have problems with special characters such as &, <... I'd like to know if there�s any class or library to filter the text in order to generate my xml without problems.
    Thank you.

    Use JDOM to generate your XML. It will worry about escaping issues for you.
    Here's a (probably rather inelegant) example for you to play around with:
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.*;
    public class DateBoom {
         public static void main(String[] args)
              throws Exception
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = factory.newDocumentBuilder();
              String dodgyText = "< & '";
              Document document = builder.newDocument();
              Element root = document.createElement("root");
              root.setAttribute("dodgy",dodgyText);
              document.appendChild(root);
              Element child = document.createElement("child");
              root.appendChild(child);
              child.appendChild(document.createTextNode(dodgyText));
              Transformer transform = TransformerFactory.newInstance().newTransformer();          
              Source source = new DOMSource(document);
              Result result = new StreamResult(System.out);
              transform.transform(source,result);
    }Your alternative is to use something like String regular expressions (regex) to do this manually, but the XML oriented libraries will catch more corner cases than you're likely to anticipate, making them more reliable.

  • Problem with email being tagged as spam

    We recently changed our ISP, and up to this point we had no problems with emails to partners being tagged as spam. I've setup the send and receive connectors as the public FQDN, but we're seeing the following NDR:
    p01c12m113.mxlogic.net #554 Denied[CS] [50e56f35.0.4929.00-2377.9578.p01c12m113.mxlogic.net]
    (Mode: normal) ##
    I've emailed McAfee to see what the problem is, but I haven't heard back. When I do a query on their web site, the web interface doesn't indicate there is a problem with this mail server, but it's continued to reject messages today. Even though the send
    and receive connectors are set to mail.domain.com, but there still a portion of the header with the domain.local. I'm wondering if that might be causing a problem. Can anyone help me out here? Thank you.
    Return-path: <[email protected]>
    Envelope-to: [email protected]
    Delivery-date: Thu, 21 Aug 2014 16:16:30 -0500
    Received: from mail.domain.com ([68.106.69.243]:51586)
    by server.rcvdomain.com with esmtps (TLSv1:AES128-SHA:128)
    (Exim 4.82)
    (envelope-from <[email protected]>)
    id 1XKZiX-00065C-Kj
    for [email protected]; Thu, 21 Aug 2014 16:16:21 -0500
    Received: from server.domain.local ([fe80::69d5:9cfa:1b4e:dfa3]) by
     server.domain.local ([fe80::69d5:9cfa:1b4e:dfa3%10]) with mapi id
     14.01.0438.000; Thu, 21 Aug 2014 16:16:21 -0500
    From: User <[email protected]>
    To: "[email protected]" <[email protected]>
    Subject: Help
    Thread-Topic: Help
    Thread-Index: Ac+9hSb9q5a7FGZpQG2YPEX62Lunhw==
    Date: Thu, 21 Aug 2014 21:16:20 +0000
    <o:p></o:p>

    ok lets start one by one.. to rule out the problem with your Email system go to www.testexchangeconnectivity.com and perform the exchange tests like inbound/ outbound and other relevant tests and share the results. once this is confirmed then come to Mcafee
    Let me know which Exchange and which Mcafee versions you are using as i also have Mcafee and it needs some tuning. May be i can help you. but need to know the info and if you can paste a NDR which are tagged as SPAM
    MARK AS USEFUL/ANSWER IF IT DID
    Thanks
    Happiness Always
    Jatin

  • Problems with Hotmail being delivered to phone

    This has been problematic since I got my first smartphone two weeks ago. It would not receive e-mail at all, and gave me an error message saying the account password was incorrect. (It was not, I've had the same password for a few months) Then it cleared up, and the phone was receiving e-mail from my Hotmail account live for a couple of days, over the weekend. Now it does not appear to be syncing automatically, and when I sync it manually I no longer receive the error message, just no e-mail is being delivered at all?!! Anyone else having this problem? Any advice? 

    I had the same problem with my Droid Razr M. Kept on getting error messages such as you're getting. Read in another community to delete the Hotmail account from the "Email Folder." I might add, check the settings and write down all the information, such as port numbers, etc. before you erase the account. Than add the Hotmail account to the folder marked "Other." This seemed to do the trick for me. Another thing you might try is to download an Email server from the Google Play. There are several of them, and some are free. I downloaded GO Email, and it works like a charm.

  • Problems with characters like "Á", "É"

    Hi, I'm having trouble when reading data with characters "&Aacute;", "&Eacute;", "&Ntilde;" from a database. If I use this:
    stmt = this.conexion.createStatement ();it works fine, but of course cannot access the records in the ResultSet but with method next ().
    As I wanted to use absolute (), first (), etc. I wrote that:
    stmt = this.conexion.createStatement (ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);but when I try to read for example the word "P&Eacute;REZ", I get the word "0x50C38952455A".
    Can anyone help? Thanks in advance.

    This is my connection code:
          Class.forName("oracle.jdbc.driver.OracleDriver");
          conn = DriverManager.getConnection(url, login, password);The code that works:
    (1)
        stmt = conn.createStatement ();The code that doesn't:
    (2)
        stmt = conn.createStatement (ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);Then, the same code to execute the query:
        rs = stmt.executeQuery ("SELECT MY_VARCHAR_FIELD FROM MY_TABLE");And to retrieve the value:
        String myValue = rs.getString ("MY_VARCHAR_FIELD");The odd thing is that before using a scrollable ResultSet (code snippet (1)), this worked perfectly. But, since I changed to code snippet (2), it doesn't for those characters.

  • Problem with characters Converting OTF Spool to PDF

    Hello All,
    Im working on ECC6.0 system. I have a Z report where it will take spool number and mail ID as input.
    It will check wheter the spool is of type OTF of ABAP List, according to that it will use the FMs ONVERT_OTFSPOOLJOB_2_PDF & CONVERT_ABAPSPOOLJOB_2_PDF.
    Now it will download the PDF internal table data into a file using OPEN DATA SET statement as shown below.
      OPEN DATASET gv_dsn FOR OUTPUT IN BINARY MODE.
    *Download the file to application server
      LOOP AT gt_pdf_output.
        TRANSFER gt_pdf_output TO gv_dsn.
      ENDLOOP.
      CLOSE DATASET gv_dsn.
    and it will ZIP the PDF as shown below.
    * open the file from application server for zipping.
      OPEN DATASET gv_dsn FOR INPUT IN BINARY MODE.
      READ DATASET gv_dsn INTO lv_content.
      CLOSE DATASET gv_dsn.
      CREATE OBJECT go_zip.
      go_zip->add( name = gv_file content = lv_content ).
      gv_zip_content    = go_zip->save( ).
    * Convert the xstring content to binary
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer        = gv_zip_content
        IMPORTING
          output_length = gv_file_length
        TABLES
          binary_tab    = gt_data.
    After that the ZIP file conataining the PDF will be sent as an attachement to the mail ID given as input.
    Now the problem is some characters of Czech are not coming properly when the attachement is opend once the mail is received. Can any one tell where the problem is and solution.
    Im getting the message "Can not extract the embedded front 'CourierNewL2'. Some characters may not display or print correctly." while opening the PDF in the ZIP attachment.
    Thank you.
    Best Regards,
    Sasidhar Reddy Matli.

    hi
    u also check the following link
    Re: how call FM otf to pdf in a report
    Re: otf to pdf
    Re: Error while converting OTF into PDF in CONVERT_OTF FM
    Re: Convert OTF to PDF problem
    Edited by: krupa jani on Jul 15, 2009 12:58 PM

  • Problem with characters in text field

    hi all
    i am missing a few characters, once i load text into a dynamic text field. chars are not missing per say; they are being replaced with empty squares.
    characters like the euro sign and accentuated german a letter.
    whats is weird is that other accentuated german letters do appear. so only a few selected are missing.
    How ive set up the fla:
    1) i've added 4 text fields to the stage in the font im using, Arial, one for each font style: normal, italic, bold and bold italic, and in all 4 fields ive embedded all latin characters (to include the german accentuaded characters and im guessing it's in the punctuation group that holds the euro sign, so that one is also embedded), besides lowercase, uppercase, numerical, and all the default groupd to include basic text.
    2) i've got a dynamic text field, created with createTextField, and setup the following ActionScript (2):
    this.createTextField("T_text",1,0,10,Stage.width-60,50);
    var myFmt = new TextFormat();
    myFmt.size = 12;
    myFmt.leading = 3;
    myFmt.font = "Arial";
    T_text.html = true;
    T_text.autoSize = "left";
    T_text.multiline = true;
    T_text.wordWrap = true;
    T_text.selectable = false;
    T_text.embedFonts = false;
    T_text.textColor = "0x666666";
    T_text.htmlText = _global.gallery_1_image_text_1; // this holds the text im displayed, called in from a database.
    T_text.setNewTextFormat(myFmt);
    now, im calling text from a database.
    when calling the text from the browser  url bar, there's no chars missing.
    its just when i make this call from flash and load the text into the dynamic text field, that characters go missing.
    below is a link to a print screen of the faulty text that is displayed in flash's dynamic text field.
    http://img210.imageshack.us/img210/340/utf8.png
    any ideas? i mean, it seems that the arial font is missing a few accentuated characters! because the code i have setup loads other accentuated characters.
    anyone has seen this issue before and know how to solve it?
    regards

    no.
    you assigned your embedFonts property to be false.
    look, you can test if you've embedded fonts correctly by using:
    T_text._rotation=3;
    if you see no text, you're not embedding fonts correctly.
    so, use:
    T_text.embedFonts=true;
    and then test.  if you see no text, use:
    click on the upper right of your library panel > new Font > select Arial and tick the symbols you need to embed > tick export for actionscript and assign a linkage id (eg, ArialID). click ok.  then use:
    this.createTextField("T_text",1,0,10,Stage.width-60,50);
    var myFmt = new TextFormat();
    myFmt.size = 12;
    myFmt.leading = 3;
    myFmt.font = "ArialID";
    T_text.html = true;
    T_text.autoSize = "left";
    T_text.multiline = true;
    T_text.wordWrap = true;
    T_text.selectable = false;
    T_text.embedFonts = true;
    T_text.textColor = 0x666666;  // no quotes here.  this is a number
    T_text.htmlText = _global.gallery_1_image_text_1; // this holds the text im displayed, called in from a database.
    T_text.setTextFormat(myFmt);  // to format the above text, use setTextFormat().  if you want to format text added after this line, use setNewTextFormat()

Maybe you are looking for

  • Movie with Rollover Image in Same Place

    My client needs to have the following graphic: http://zammedia.com/FreshDesignIncDevelopment/ With a slideshow movie to the side running continously.. and ultimately they would like to have it so that when some rolls-over the dots, a specific image p

  • Plz send answers ASAP

    1Q)marker interface having no methods right.. then what is the use of marker interface? for what purpose we use marker interface? 2Q)how to make a dynamic object ,name of object is entered by user? 3Q)Why class Class is always the Super Class for eve

  • Install mod_security 2.5 on Leopard Apache 2.2??

    What is the best way to install mod_secuirty 2.5 on Apache 2.2, Mac OS 10.5 Leopard Server?? I have not had much luck.

  • Graphical Display of Organization Structure in HR

    While creating the organization structure some dummy org. units are created basically for reporting purpose.  However while displaying the same in graphical structure the dummy units are also displayed. I would like to know if it is possible to hide

  • I5 Nav Batt Drain?

    I got to use the Nav feature yesterday, for about 1/2 hour of turn-by-turn.  At the end of that, the battery had drained 20 to 25%.  Is that normal or do I have a battery issue?  If this is normal drain, how can I use the Nav on anything but short tr