Special double quotes and apostrophes in java help

We are writing help for an application and using doctor help to generate it. The help is written in Word and converted to html. Word however, converts all the " characters to those "squiggly ones" which point towards the word they're quoting.
When we viewed the generated help with java help those squiggly were not rendered. They are rendered as a square which means java help does not understand them.
I'm sure someone else must have encountered this issue.
Please can you tell me how to successfully render the squiggly double quotes in java help?

You need the following encoding for those characters:
“
”
using an xml encoder, e.g. xmlenc solves this issue, otherwise you must do it manually.
But I have a related problem. When characters in the XML file are encoded
they are only displayed correctly if some non encoded character follows.
When there are two successive encoded characters then only the first one
is displayed correctly. Putting a whitespace in between them displays both
characters correctly, but with the whitespace in between.
I guess there is an issue with the XML parser. Changing the encoding of the XML file does not help.
example: TOC.xml file (displayed correctly in IE)
<?xml version='1.0' encoding='ISO-8859-9' standalone='yes' ?>
<!DOCTYPE toc PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 1.0//EN" "http://java.sun.com/products/javahelp/toc_1_0.dtd"><!--generated by JHelpDev Version: 0.4, 18 August 2005, see jhelpdev.sourceforge.net-->
<toc version="1.0">
<tocitem text="images "/>
<tocitem text="&#286;&#286;RENC&#304; MOD&#220;L&#220; " target="index"/>
</toc>
Any ideas?

Similar Messages

  • Pasting smart quotes and apostrophes in code view.

    Sine upgrading to Dreamweaver CS5, I haven't been able to copy/paste smart quotes and apostrophes into code view without them automatically being converted to straight quotes.
    For example, the following sentence (notice the curly quotes):
    John’s new song is called “DW Blues”
    would get pasted into Code View as:
    John's new song is called "DW Blues"
    Notice the smart quotes and apostrophe are replaced with single and double ticks, or "straight quotes."  While this seems like a minor detail, it's extremely important to our writers and editors to have them appear on the website exactly as typed.
    If I do the same copy/paste in Design View (doc type is XHTML Transitional), it appears as:
    John's new song is called &quot;DW Blues&quot;
    The characters are still replaced, and the straight quotes are then entity encoded (as expected).
    This doesn't happen with other valid UTF-8 characters like ™, ®, —, etc., or with any other code editors I've used, including DW CS3.
    Is there a hidden preference somewhere to disable this "feature," or is it just a bug?
    Please help!

    It's now 4 years since jsparacio posted this, and I just wanted to let everyone know that I had -- and am still having -- the exact same problem with Dreamweaver CS5 (running first under Windows XP, then Windows 7, and now again with Windows 8.1). So it's not just Macs that are affected.
    FWIW, I have set my DW CS5 Paste preferences to the 3rd of 4 options available
        1 - Text Only
        2 - Text With Structure
        3 - Text With Structure Plus Basic Formatting
        4 - Text With Structure Plus Full Formatting
    in the EDIT > PREFERENCES > Copy/Paste Preferences dialog box.
    But the Paste Special command ignores this setting, giving me only the first 2 options from which to choose, with option 2 the default selection for Paste Special operations (options 3 and 4 are grayed out, and can't be selected).
    According to David Sawyer McFarland's _Dreamweaver CS5: The Missing Manual_ (O'Reilly Media, 2010), the reason these are grayed out is because I am pasting unformatted ASCII text which I generated in a program editor called "UltraEdit":
        "... Choose EDIT > PASTE SPECIAL to open the Paste Special window. Here, you can choose which of the four techniques you wish to use ... sort of. You're limited to what Dreamweaver can paste. For non-Microsoft Office products, you can use only the first two options--the others are grayed out--whereas you can choose from any of the four with text copied from Word or Excel." (McFarland, p. 81)
    Regardless of such restrictions, standard copy-and-paste (CTRL+C followed by CTRL+V) works just fine for me using Dreamweaver CS4 (i.e., I have never needed to use the Paste Special command), but with DW CS5, neither Paste command (CONTROL+V or CTRL+SHIFT+V) works properly with typographic/curly/smart quotes.
    All typographic quotes -- ASCII-0146 and ASCII-0147 (double quote marks); plus ASCII-0145 and ASCII-0146 (single quote marks, for quotes within a quote) -- are converted to inch (&quot; is entered in the code) and foot (' is entered in the code) marks when I copy-and-paste text with these characters into Dreamweaver's Design View.
    When I copy this same plain ASCII text directly into the code (rather than using Design View), typographic double open & close quotes are converted to the inch (") mark, and typographic single open & close quotes are converted to the foot (') mark.
    The beginning of this week, I installed Dreamweaver CS5, ver. 11.0, Build 4909 under Windows 8.1 OS on my new Ultrabook. I was hoping that under Windows 8.1, DW CS5's handling of typographic quotes might improve so that I can actually use this program that I purchased 4 years ago. Alas, no such luck: I continue to have the same problem I had when I first upgraded to Dreamweaver CS5 back in August 2010 (then running under Windows XP on my desktop computer).
    Back in August 2020, when I first asked about fixes, I was told to change the Title/Encoding setting of Page Properties to "Western European" -- which I tried, but it didn't work then, and it doesn't work now ... and even if it did, it wouldn't be a proper fix for the problem as I have plenty of good reasons for wanting my HTML page Title/Encoding set to Unicode (UTF-8), not Western European ("charset=iso-8859-1").
    The ability to copy-and-paste typographic quotes is such a big deal for me that I chose back in August 2010 to revert to Dreamweaver CS4, which I've been using ever since.
    It is *very* frustrating that, 4 years later, I still can't use this program, and shall be reverting to DW CS4, yet again.
    I continue to be completely flummoxed by this. Every other program with which I am familiar converts non-typographic quotes to typographic/curly/smart quotes ... never have I seen the process automated in reverse!

  • Escaping double quotes and/or semi-colons in connection string

    Can someone show me a working example of a connection string that uses a password that contains a double quote (") and another example that has a password that contains a semi-colon.
    I cannot get this to work and I can't find anything in the documentation.
    Thanks.

    You didn't say what part of the .NET documentation this came from. I tried this with ODP.NET and I was unable to get it to work.
    Did you try it?
    here are the same tests I've been trying. Can someone please provide me with a working example.
              static void Main(string[] args)
                   OracleConnection oc=null;
                   try
                        oc=new OracleConnection("User Id=tmoore2;Password=te\"st;Data Source=dev3;");
                        oc.Open();
                        Console.WriteLine("Success");
                   catch(Exception ex)
                        Console.WriteLine(ex.Message);
                   finally
                        if(oc!=null)
                             oc.Close();
                             oc.Dispose();
                   try
                        Console.WriteLine("User Id=tmoore2;Password=te\\\"st;Data Source=dev3;");
                        oc=new OracleConnection("User Id=tmoore2;Password=te\\\"st;Data Source=dev3;");
                        oc.Open();
                        Console.WriteLine("Success");
                   catch(Exception ex)
                        Console.WriteLine(ex.Message);
                   finally
                        if(oc!=null)
                             oc.Close();
                             oc.Dispose();
                   try
                        oc=new OracleConnection("User Id=tmoore2;Password=\"te\\\"st\";Data Source=dev3;");
                        oc.Open();
                        Console.WriteLine("Success");
                   catch(Exception ex)
                        Console.WriteLine(ex.Message);
                   finally
                        if(oc!=null)
                             oc.Close();
                             oc.Dispose();
                   try
                        oc=new OracleConnection("User Id=tmoore2;Password='te\"st';Data Source=dev3;");
                        oc.Open();
                        Console.WriteLine("Success");
                   catch(Exception ex)
                        Console.WriteLine(ex.Message);
                   finally
                        if(oc!=null)
                             oc.Close();
                             oc.Dispose();
                   try
                        oc=new OracleConnection("User Id=tmoore2;Password='te\\\"st';Data Source=dev3;");
                        oc.Open();
                        Console.WriteLine("Success");
                   catch(Exception ex)
                        Console.WriteLine(ex.Message);
                   finally
                        if(oc!=null)
                             oc.Close();
                             oc.Dispose();
                   try
                        oc=new OracleConnection("User Id=tmoore2;\"Password=te\"st\";Data Source=dev3;");
                        oc.Open();
                        Console.WriteLine("Success");
                   catch(Exception ex)
                        Console.WriteLine(ex.Message);
                   finally
                        if(oc!=null)
                             oc.Close();
                             oc.Dispose();
                   try
                        oc=new OracleConnection("User Id=tmoore2;\"Password=te\\\"st\";Data Source=dev3;");
                        oc.Open();
                        Console.WriteLine("Success");
                   catch(Exception ex)
                        Console.WriteLine(ex.Message);
                   finally
                        if(oc!=null)
                             oc.Close();
                             oc.Dispose();
              }

  • Custom Windows and Frames in Java - Help

    Hello, I'm begining a Java class in school and Ive been wondering how to get rid of these boring windows. For example I want to turn something like this:
    to something like this:
    I realize theyre 2 different programs. Im simply asking how I may draw and implement my own frames on windows along with background images/colors.
    Thanks in advance~

    Have a look at http://www-128.ibm.com/developerworks/java/library/j-iframe/ which allows you to override all of the decorations associated with frames.

  • Quotes and apostrophes show as question marks when published to my server

    imac intel core 2 duo 24"   Mac OS X (10.4.9)  

    Miss Laverne, there is an "invisible" file called .htaccess that you can modify. It is a simple text file so if Fetch has a preference setting for viewing "invisible" files, you can see it. If it is not there, you can make one.
    Reason I know this is that I had a similar problem on my server, and modifying my .htaccess file solved it. UTF-8 encoding was the problem.
    Study up on .htaccess; there is info all over the internet.

  • Double quotes in function and procedure names when using impdp

    When viewing a function in the original database, it looks like:
    CREATE OR REPLACE FUNCTION TA_ACTIVITY_D_GEN_FNC
    After doing an expdp and impdp to restore a development database, it now looks like
    CREATE OR REPLACE FUNCTION "TA_ACTIVITY_D_GEN_FNC"
    and also has 2 blank lines at end of function.
    This causes us problems when trying to use various utilites to compare differences in production and development. Now every function and procedure shows up as being different.
    Can someone please explain why and what can be done to avoid this from happening?
    Edited by: user6116705 on Jun 15, 2010 7:52 AM

    from old exp, here is the first line of the create procedure statement:
    CREATE FORMAT71 PROCEDURE "SECURE_DML"
    You can see the double quotes. I don't understand why you wouldn't see the same compare issue with old exp. I was wondering what you were using for compare since it would let me know where to look for anything that has changed from the original create to the create performed by data pump. I remember there being an issue in this area. I just don't remember if it was extra spacing, upcasing, or something else or multiple changes. You could contact Oracle support to see if there is a fix and if it is backported to your version.
    The only other way you can possibly fix this (and it would be a huge pain) would be to run impdp with a sqlfile and then edit the sqfile to remove the double quotes and to remove any extra spacing/extra lines. A patch from Oracle would certainly be easier if one was available.
    Dean

  • String without double quotes

    Hi,
    I am new to Java,
    I want to insert a string in database but it should not have double quotes.
    e.g i want to insert string TJ2003W.
    But when we declare this as string it is surronded by double quotes.
    Pls help reagrding this.

    Hi,
    I am new to Java,
    I want to insert a string in database but it should
    not have double quotes.
    e.g i want to insert string TJ2003W.
    But when we declare this as string it is surronded by
    double quotes.
    Pls help reagrding this.Hi,
    Strings are declared by double quotes. and when u insert them in database, just add the variable for string.
    Please elaborate your problem more.

  • Replacing " (double quote) with ' (single quote)

    Hi there,
    I have the following method to manipulate user input. All I want to do is, to replace the double quote with a single quote. The implementation I tried was,
    this.replace(desc, "\"", "'");
    This does not work for me. It jsut removes the double quote and does not introduces the single quote. Could any one please advise?
    Thanks,
    Des
    public static String replace(String line, String oldString, String newString) {
              if(line != null && oldString != null && newString != null) {
                   int index = 0;
                   while ((index = line.indexOf(oldString, index)) >= 0) {
                        line = line.substring(0, index) +
                             newString +
                             line.substring(index + oldString.length());
                        index += newString.length();
              return line;
         }

    Bad luck.. I am unable to get it still.
    This is the code I am using (implemetation is in a JSP. I am using this code to test it).
    public class Test{
    public static void main(String args[]){
         String s = args[0];
         Test t = new Test();
         String doubleQuote = "\"";
         System.out.println(" output :"+ t.replace(s,doubleQuote,"'"));
         //System.out.println(" output :"+ t.replace(s,"\"","'"));
         //System.out.println(" output :"+ t.replace('"', '\''));
    public static String replace(String line, String oldString, String newString) {
              if(line != null && oldString != null && newString != null) {
                   int index = 0;
                   while ((index = line.indexOf(oldString, index)) >= 0) {
                             System.out.println(" line count :");
                        line = line.substring(0, index) +
                             newString +
                             line.substring(index + oldString.length());
                        index += newString.length();
              return line;
    }mshn02
    The main problem is I am stuck with the server's version of Java (which I have no control on it). I could not use 1.4.2

  • Displaying double quote best practice

    If a user enters a double quote and it gets saved to the database then displaying it fails in the value="" of an input field.
    To fix this I can do a .replaceAll("\"", """) on the form... but it doesn't seem like a good solution to have to do that to every field that should allow a double quote. And while in my case the number of fields is small and setting this up in all the cases that it would be needed is feasible, it seems like it would be better to do this on the front end then to change something in java... somewhere I'm bound to end up with &quot saved to the database if I'm not careful.
    so is there a best practice for this? should I use an EL function inside my ${} to do the replace?
    Thanks

    I tried what you said, but it messed the page all up.
    The replace is inside an input field
    value="${fn:replace(name,'"','& quot;')}"it caused a bunch of errors. I probably would have had to do it inside a <set></set> tag and then referenced that value in the input field I guess.... But I convinced the boss that double quotes are not needed in the name or description. So I just added an onkeydown event to disable double quotes. Hope it doesn't come back and bite me.

  • Double quotes in JDev 10G OAF, External tools

    Hello everybody.
    In my JDev10G OA Ext i'm trying to create external tools commant to import selected page into MDS Repository.
    Exteranl tool parameters are:
    Program executeble: C:\JdevR12RUP3\jdevbin\oaext\bin\import.bat
    Arguments: ${file.dir}\${file.name} -username apps -password ${promptl:label=DB_APPS_PASSWORD} -rootdir ${project.dir} -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host.ru)(PORT=1527))(CONNECT_DATA=(SID=TEST6)))"
    Run Directory: <no data here>
    Command sample looks like:
    C:\JdevR12RUP3\jdevbin\oaext\bin\import.bat C:\JdevR12RUP3\jdevhome\jdev\myprojects\xx\oracle\apps\per\xx_stip_demo\webui\xxStipDemoPG.xml -username apps -password -rootdir C:\JdevR12RUP3\jdevhome\jdev\myprojects -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host.ru)(PORT=1527))(CONNECT_DATA=(SID=TEST6)))"
    Now, whan i'm trying to select a page and exec this command i'm getting the following in command log:
    C:\JdevR12RUP3\jdevbin\oaext\bin\import.bat C:\JdevR12RUP3\jdevhome\jdev\myprojects\xx\oracle\apps\per\xx_stip_demo\webui\xxStipDemoPG.xml -username apps -password apps -rootdir C:\JdevR12RUP3\jdevhome\jdev\myprojects -dbconnection (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host.ru)(PORT=1527))(CONNECT_DATA=(SID=TEST6)))
    Error: Error connecting to database "jdbc:oracle:thin:apps/apps@(DESCRIPTION"
    Unknown host specified
    Import failed.
    As you can see, no double quotes around this: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host.ru)(PORT=1527))(CONNECT_DATA=(SID=TEST6)))
    if i'am adding double quotes and copy command in cmd window, everything is fine, import completed.
    Need your help plz
    Edited by: user6400327 on 27.11.2011 22:33

    Sand,
    Instead of passing the value at runtime, had u tried running the import script by entering all the values as in below script.
    C:\JdevR12RUP3\jdevbin\oaext\bin\import C:\JdevR12RUP3\jdevhome\jdev\myprojects\xx\oracle\apps\per\xx_stip_demo\webui\xxStipDemoPG.xml  -rootdir C:\JdevR12RUP3\jdevhome\jdev\myprojects -username apps -password  apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=TEST6)(PORT=1527))(CONNECT_DATA=(SID=dev)))"Regards,
    Gyan

  • Seacrh For double Quotes with ListFindNoCase

    My user entered  street names with double quotes and crashed my app.:
    "32 street" instead of just 32 street.
    I did not think of checking for double quotes at the time and I need to modify my codes now.
    I need to find how many address entry has double quotes then produce a report so users can fix their feed.
    I think my syntax below i wrong that's why I got error mesage from CF. Can anyone help with the right syntax on how to search a double quores in a string?
    <CFIF ListFindNoCase(StreetName, " " ") NEQ 0>
      create report
    </CFIF>

    Adam Cameron. wrote:
    My user entered  street names with double quotes and crashed my app.:
    "32 street" instead of just 32 street.
    I did not think of checking for double quotes at the time and I need to modify my codes now.
    I need to find how many address entry has double quotes then produce a report so users can fix their feed.
    Instead of "fixing" the data, why don't you fix your app so that the double quotes aren't a problem?  Don't treat the symptom: treat the problem.
    Adam
    I agree. Granted, it is often difficult, even impossible, to fix your application such that users will enter the kind of data you want. However, your application shouldn't crash because of bad user input. This suggests you should validate the form variables. 

  • Double Quotes in MaxL Strings

    I am trying to pass in a calc script string from a Perl script to a MaxL script. The calc script needs double quotes around some of the member names (yes, I know I can create aliases with underscores to work around this, but I can't believe this isn't possible). I can escape the double quote characters in Perl, no problem. But the double quotes just get stripped by MaxL. Here is an example:<BR><BR>MAXL> echo 'I am "quoting" this';<BR><BR>I am "quoting" this<BR><BR>MAXL> set X = 'I am "quoting" this';<BR><BR>MAXL> echo $X;<BR><BR>I am quoting this<BR><BR>MAXL><BR><BR>There is nothing in the docs about escaping double quote characters. I've tried using backslash, no luck there. I've tried using double double quotes and they all get stripped. I've tried doing this inside single quoted strings and double quoted strings - no joy whatsoever. The funny thing is the example above, where simply echoing the literal string works, but assigning it to a variable strips out the double quotes.<BR><BR>Does anyone know how to get double quotes into a MaxL string variable? There has to be a way...<BR><BR>Thanks,<BR><BR>James

    Yes, I've dealt with enclosing variables in double quotes in order for MaxL to parse them properly, but what I'm trying to do is use a variable that contains a double quote. Such as:<BR><BR> set QuoteVar = 'I am "quoting" this';<BR><BR>I'm trying to set substitution variables via MaxL, and some of my existing sub vars have double quotes in them so that they can be used to store member names that appear in calc scripts. As I said, I know I can accomplish this with an alias table that creates a version of the member name that doesn't need quotes, but that's a whole deal to maintain just for this one thing and it seems overly burdensome for such a simple task.<BR><BR>Also, as I said, MaxL does fine with double quotes in literal strings, it's only when assigned to variables that it always strips them out. I want to create a relatively generic script for setting sub vars, so I need to pass variables around. Just calling MaxL from Perl and passing in parameters that get converted to $1, $2, etc. causes these double quotes to get stripped.<BR><BR>So, is there any way around this?<BR><BR>Thanks,<BR><BR>James

  • Double quotes missing in CSV file but exist in text file from AL11

    Hi I am sending a file to AL11 with one of the fields having double quotes Like "field value" . When i download into Text file  i am seeing the quotes but not when download as CSV file from Al11. Any SAP notes for this . If i add  multiple quotes ' """" ' to have in csv I am seeing more quotes in text file which is not accepted . Please reply if anyone worked on this before . Thanks Kamesh

    The CSV file also has the quotes (check in notepad), but when opened in MS Excel, Excel has a feature to ignore double quotes and consider the comma inside the quotes as part of field, not as a field separator.

  • Code Sample: Easy RFC Lookup From XSLT Mappings Using a Java Helper Class

    Hi everyone,
    This is just a shameless plug for my article: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14">Easy RFC Lookup From XSLT Mappings Using a Java Helper Class</a>. I hope you're interested in reading it, and I welcome your comments in this thread.
    Kind regards,
    Thorsten

    Hi Stefan. Thanks for your post. I have already done that. It still does not work. As a base for my java helper class I have usesd Thorstens code.
    The problem is quite confusing. I will try to ouline both issues here.
    First of all, when try to test from within the Operation Mapping, I always get a java error saying it cannot find the communication channel (it is there and working because I have tested it with the RFCLookup in graphical mapping). I have found a way to work around this, and that is to uncheck the "Use SAP XMLToolkit" checkbox --> switch to test tab, enter my ReceiverService in the parameter tab (header parameter) --> switch back to Definition tab, check the "Use SAP XMLToolkit" checkbox --> switch to Test tab and run the test. Then the XSLT and call to java helper class will work. Of course this is not really something you want to do all the time. Maybe there is a bug.
    Secondly, it never works when I try to do it "live". I am using a file adapter to pick up one file, convert it and a file adapter to drop the converted file. I get the following error code in SXMB_MONI.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!--  Request Message Mapping   -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">TRANSFORMER_CONF_EX</SAP:Code>
      <SAP:P1>ATJ_Accounting2XML_Accounting.xsl</SAP:P1>
      <SAP:P2>http://rd.accounting.logica.com</SAP:P2>
      <SAP:P3>fd552c30-bad9-11dd-9761-c21dac1b818c</SAP:P3>
      <SAP:P4>-1</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>TransformerConfigurationException triggered while loading XSLT mapping ATJ_Accounting2XML_Accounting.xsl; http://rd.accounting.logica.comfd552c30-bad9-11dd-9761-c21dac1b818c-1</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Using an XSLT without a call to a java helper class, works just fine.
    I am totally at a loss here. Any more input would be much appreciated.
    /Patrik

  • Accept apostrophe and double quote

    How can I make my web application (developed in jsp) accept both the characters: apostrophe and doule quote, in a text field?
    <input type="text" name="Name" value=""> will not accept apostrophe.
    <input type="text" name="Name" value=''> will not accept double quote.

    Hi amitads,
    I'm sure u've used Java enough. Also, u must have learned about the \ (backslash) escape character ?
    So, if u want to include a string like a single quote, u can write \' and for a double quote u can write \".
    Try this ... I'm sure it will help.
    Keep me posted.
    Cheers !!
    Sherbir.

Maybe you are looking for