Issue with double quotes in APEX 3.1

Hi,
Recently we have upgraded our APEX environment (both production and development) from HTMLDB 2.0 to APEX 3.1.
Users reported that when they cut/paste data from word document into forms, double and single quotes in the data are displaying as weird symbols like "¿".
Surprisingly we have this issue in our production environment only not in development environment. I am guessing there must be setting which is causing this issue.
Please help me to resolve the issue and let me know if you want more details.
Thanks,
Lakshmi

It's most likely this is caused by non-standard Microsoft character encoding in combination with default "auto correct" behaviour in their products that users may not even be aware is operating. "Smart Quotes" are the culprit in this case.
As it is highly unlikely that your users will be able to stop using these products, the best options are: turn off the offending features in MS software; educate users about the source of the problem and get them to replace the errant characters with the relevant ASCII or Unicode character or "decimal numeric character reference" when transferring to DB/web (worthwhile bearing some context in mind here: ASCII apostrophes and quotes are probably best for values stored in traditional database columns as they may be used in a number of different applications); try to write some kind of translator in your database/application that fixes the incorrect characters.
That this is occurring in one environment but not the other may indicate that there's a character set difference somewhere in the stack, but the human element may be coming into play as well: developers encounter this problem frequently and often turn off "smart quotes" as a result!

Similar Messages

  • How to replace single quote with double quote

    hai all,
    i have a problem,
    i am trying insert a string containing single quote into ms-access database.
    it is giving error.
    how can i avoid this .if i replace a single quote in the text with double quote it will defenitely
    insert into database.
    in java.lang.String
    replace () will not work to replace quote with double quote.
    any otherway to solve this problem.
    please mail me to [email protected]
    thank you
    sambareddy
    inida

    java.lang.String.replace () will not work to replace quote with double quote.Really?
    String x = ...
    x.replace( "'", "\"" );

  • SSIS importing comma delimited with double quote text qualifier - Works in VS - SQL Job ignores text qualifier and fails (truncation)

    I've created an SSIS package to import a comma delimited file (csv) with double quotes for a text qualifier ("). Some of the fields contain the delimiter inside the qualified text. An example row is:
    15,"Doe, John",IS2,Alabama
    In SSIS I've specified the text qualifier as ". The sample output in the connection manager looks great. The package runs perfectly from VS and when manually executed on the SSIS server itself. The problem comes when I schedule the package to run via SQL
    job. At this point the package ignores the text qualifier, and in doing so pushes half of a field into the next available column. But instead of having too many columns, it concatenates the last 2 columns ignoring the delimiter. For example (pipes are fields):
    15|"Doe| John"|IS2,Alabama
    So the failure happens when the last half of a field is too large to fit into the next available field. In the case above _John" is 6 characters where the IS2 field is char(3). This would cause a truncation failure, which is the error I receive from the
    job history.
    To further test this I created a failure flow in my data flow to capture the records failing to be pulled from the source csv. Out of ~5000 records, ~1200 are failing, and every one of the failures has a comma delimiter inside the quoted text with a 'split'
    length greater than the next ordinal field. The ones without the comma were inserted as normal and records where the split fit into the next ordinal column where also imported, with the last field being concatenated w/delimiter. Example records when selected
    from table:
    25|"Allan Percone Trucking"|GI6|California --Imported as intended
    36|"Renolds| J."|UI6,Colorado --Field position offset by 1 to right - Last field overloaded
    To further ensure this is the problem, I changed the csv file and flat file connection manager to pipe delimited, and sure enough every record makes it in perfectly from the SQL job execution.
    I've tried comma delimited on the following set ups. Each set up failed.
    SSIS Server 2008 R2 RTM
    DB Server 2008 RTM
    DB Compat 80
    SSIS Server 2008 R2 RTM
    DB Server 2008 R2 RTM
    DB Compat 80
    SSIS Server 2008 R2 RTM
    DB Server 2008 RTM
    DB Compat 100
    SSIS Server 2008 R2 RTM
    DB Server 2008 R2 RTM
    DB Compat 100
    Since a lot of our data comes in via comma delimited flat files, I really need a fix for this. If not I'll have to rebuild all my files when I import them to use pipe delimiters instaed of commas. I'd like to avoid the extra processing overhead if possible.
    Also, is this a known bug? If so can someone point me to the posting of said bug?
    Edit: I can't ask the vendor to change the format to pipe delimited because it comes from a federal government site.

    Just wanted to share my experience of this for anyone else since I wasted a morning on it today.
    I encountered the same problem where I could run the package fine on my machine but when I deployed to a server and ran the package via dtexec, the " delimeter was being replaced with _x0022_ and columns all slurped up together and overflowing columns/truncating
    data etc.
    Since I didn't want to manually hack the DTS XML and can't install updates, the solution I used was to set an expression on the textdelimiter field of the flat file connection with the value "\"" (a double quote). That way, even if the one stored in XML
    gets bodged somewhere along the way, it is overridden with the correct value at run time. The package works fine everywhere now.

  • Csv with double quotes

    Hello,
    I've had harsh time trying to figure out how to read a csv file with double quotes, I need to read a csv file in order to fill a spreadsheet.
    I attach a csv file example to show the sort of file I'm working on.
    Thank you
    Raymundo Cassani
    Solved!
    Go to Solution.
    Attachments:
    test_file.csv ‏1 KB

    Upon closer inspection, you are right, it was a trick question.  You need to look for commas that follow an even number of quotation marks for the separators.  Since my previous snippet was not converted, I assume you have an earlier LV version so I have attached an example in 8.6.  You can get rid of the quotes if you like (exercise for the reader).
    Attachments:
    ReadCSVwithQuotes.vi ‏9 KB

  • JS - surrounding selected text with double quotes

    I have a working script which places brackets around selected text in the main body of my document (not in a table), but when I changed the script to insert double curly quotes, the script wont work.
    Why wont this JS work (script stalls on the var line):
    var myObject = (app.selection[0].parent.constructor.name == "Cell") ? app.selection[0].parent.texts[0] : app.selection[0];
    with (myObject)
    insertionPoints[-1].contents = "";
    insertionPoints[0].contents = "";
    while this one does work:
    var myObject = (app.selection[0].parent.constructor.name == "Cell") ? app.selection[0].parent.texts[0] : app.selection[0];
    with (myObject)
    insertionPoints[-1].contents = ")";
    insertionPoints[0].contents = "(";
    Thx Oz
    PS The quotes are showing as three straight quotes above, but in my script they are two straight double quotes surrounding either a right or a left curly double quote.

    Perhaps there's a Smart Quotes interpreter in JS? Who knows.
    If you find it failing again, try inserting the quotes as Unicode values, as these should not be subject to any translating.
    I.e.,
    >insertionPoints[-1].contents = "\u201c";

  • 8.1.7 jdbc driver: object types with double quotes

    Hi all,
    While switching from 8.1.6 to 8.1.7 I have trouble with the jdbc driver. It doesn't work
    as before: The function CallableStatement.registerOutParameter (and probably some other) doesn't take object type
    names in double quotes anymore. A test program is appended to this message. Using a 8.1.6 jdbc driver this program works fine but with a 8.1.7 jdbc driver it throws an exception.
    My questions are: Is this bug already filed?
    Is a bugfix already available somewhere?
    Thanks in advance for any information
    Joerg
    import java.sql.*;
    * create type "test_t" as object (atrb number(10));
    * create table "test" of "test_t" (atrb not null) oidindex();
    class test
    public static void main (String args [])
    throws SQLException
    String s = "begin insert into \"test\" t values (1)" +
    " returning ref(t) into ?; end;";
    try{
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@host:1521:orcl","joerg", "password");
    CallableStatement cs = conn.prepareCall( s );
    cs.registerOutParameter(1, Types.REF, "\"test_t\"");
    cs.execute();
    System.out.println("Statement returned:");
    System.out.println( cs.getObject(1) );
    cs.close();
    conn.commit();
    conn.close();
    catch(SQLException e){
    System.out.println("SQLException was thrown...");
    System.out.println(e.getMessage());
    }

    I believe that typenames are always treated as case sensitive (unless they are all uppercased).
    In your example you should write:
    cs.registerOutParameter(1, Types.REF, "test_t");
    If you had declared the type test_t in a case insensitive way (without "..."), then you'd have to write:
    cs.registerOutParameter(1, Types.REF, "TEST_T");
    If you have a schema-qualified name, use a ".":
    cs.registerOutParameter(1, Types.REF, "SCOTT.test_t");
    However, this behavior implies that you cannot use "." inside of quoted identifier names.

  • Update with double quotes

    Hi,
    How to include double quotes in a update statement?
    UPDATE sampletable
    SET description = '<p style="font-weight: bold; color:Red;"> Message to Employee </p>'
    WHERE empid = 1;
    Expected output with I query table,
    select description from sampletable WHERE empid = 1;
    <p style="font-weight: bold; color:Red;"> Error Message </p>
    Table definition:
    sampletable
    empid number
    description varchar2(200)
    Thanks

    Please use the {noformat}{noformat} tag at the beginning and end of your examples.SQL> create table sampletable( empid number, description varchar2(2000));
    Table created.
    SQL> insert into sampletable values (1, null);
    1 row created.
    SQL> UPDATE sampletable
    2 SET description = '<p style="font-weight: bold; color:Red;"> Message to Employee </p>'
    3 WHERE empid = 1;
    1 row updated.
    SQL> select * from sampletable;
    EMPID
    DESCRIPTION
    1
    <p style="font-weight: bold; color:Red;"> Message to Employee </p>
    Your question is not clear: why are you expecting "Error Message" instead of "Message to Employee"?
    What do the double quotes have to do with it?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Issue with double click zoom on Essbase Excel Add-in

    Several of my users have been experiencing a problem recently when the do a double click zoom in or zoom out in Excel Add-in 7.1.3. It will start clocking (icon flashes as well as the cells while the clocking is occuring) and the only way to break out of it is to hit escape. Sometimes the clocking will only last a minute but, depending on the number of members that you can drill down into, can last several minutes at which point the users end up just escaping out. This doesn't happen with all templates or with all users. Zooming in and zooming out using the menu works fine. This only occurs with double click zooming (which to the users is much quicker and they prefer not using the menu).
    This is Excel Add-in 7.1.3 on Office 2007 which I realize is not certified compatible but we have not had this issue until the last few weeks.
    Anyone else having this issue? Ideas?

    sometimes you dont find any excel sheets open but there will be a process allocated to it and running ..you can see this in the task manager..
    so go to task manager and try deleting all the process related to excel.
    Now after deleting all the processes you find NO excel sheets open..
    Try viewing the required excel sheet now..
    hope it works now..

  • Security Issues with uploading files into APEX - How is anti-virus handled?

    Hi APEXers!
    We have been using APEX 3 for some time and are now migrating to APEX 4. We have a request for a new application that will require uploading spreadsheets. From other developers, I know it can be done in a few ways. The only thing we have done before is limitied - storing them in BLOBs.
    With the Websheets in APEX 4, users could load them directly into the database.
    But the anti-virus issue has always been unclear. For the apps that we are allowing to upload to BLOBs, they are small user, internal apps so we hope that our enterprise desktop software will stop a bad file before it gets uploaded.
    We have gotten some questions about allowing outside-our-network people to upload spreadsheets or maybe even the public. So far, our security people have just said no - but I wondered what everyone else is doing?
    Are there any White Papers or articles on this? My general impression is that anti-virus software has to be installed at the server level to deal with this.
    If anyone can provide some guidance, I would appreciate it as I have to figure out what to tell the development team requesting to do this.

    Do you have to take excel format? CSV would be a lot safer.
    You might take inspiration from this:
    http://stackoverflow.com/questions/3363767/how-do-you-virus-scan-a-file-being-uploaded-to-your-java-webapp-as-it-streams

  • Query filters with double quotes fail

    Hi,
    when I to execute a query with a filter that contains double quotes on
    Kodo 3.0.3 I get an Exception.
    Filter:
    string == \"My name is \"Wolfgang\".\"
    Kodo interprets the double quotes (after 'is ' )as the end of the string
    and expects the next token ('Wolfgang') to be an attribute name.
    Is there an escape character for double quotes or any other solution?
    Exception:
    kodo.util.UserException: Attempt to query nonexistant or unm
    anaged field "Wolfgang" of type "de.logas.datenbank.jdo.BeispielKlasse1".
    at kodo.query.FilterParser.traversePath(FilterParser.java:1061)
    at kodo.query.FilterParser.eval(FilterParser.java:783)
    at kodo.query.FilterParser.getValue(FilterParser.java:999)
    at kodo.query.FilterParser.eval(FilterParser.java:813)
    at kodo.query.FilterParser.getExpression(FilterParser.java:1021)
    at kodo.query.FilterParser.parseFilter(FilterParser.java:204)
    at
    kodo.query.JDOQLQuery$DataStoreQueryExecutor.<init>(JDOQLQuery.java:4
    27)
    at
    kodo.query.JDOQLQuery.newDataStoreQueryExecutor(JDOQLQuery.java:99)
    at kodo.query.AbstractQuery.internalCompile(AbstractQuery.java:576)
    at kodo.query.AbstractQuery.compile(AbstractQuery.java:531)
    at kodo.datacache.CacheAwareQuery.compile(CacheAwareQuery.java:271)
    -- Wolfgang

    Also, in general, it is advantageous to separate variable content in a
    query out into parameters. This helps us out when maintaining our query
    compilation cache.
    -Patrick
    Stephen Kim wrote:
    Wolfgang,
    To do this in JDO you have to double escape it
    i.e. string== \"My name is \\\"Wolfgang\\\".\"
    Wolfgang Hutya wrote:
    Hi,
    when I to execute a query with a filter that contains double quotes on
    Kodo 3.0.3 I get an Exception.
    Filter:
    string == \"My name is \"Wolfgang\".\"
    Kodo interprets the double quotes (after 'is ' )as the end of the string
    and expects the next token ('Wolfgang') to be an attribute name.
    Is there an escape character for double quotes or any other solution?
    Exception:
    kodo.util.UserException: Attempt to query nonexistant or unm
    anaged field "Wolfgang" of type "de.logas.datenbank.jdo.BeispielKlasse1".
    at kodo.query.FilterParser.traversePath(FilterParser.java:1061)
    at kodo.query.FilterParser.eval(FilterParser.java:783)
    at kodo.query.FilterParser.getValue(FilterParser.java:999)
    at kodo.query.FilterParser.eval(FilterParser.java:813)
    at kodo.query.FilterParser.getExpression(FilterParser.java:1021)
    at kodo.query.FilterParser.parseFilter(FilterParser.java:204)
    at
    kodo.query.JDOQLQuery$DataStoreQueryExecutor.<init>(JDOQLQuery.java:4
    27)
    at
    kodo.query.JDOQLQuery.newDataStoreQueryExecutor(JDOQLQuery.java:99)
    at
    kodo.query.AbstractQuery.internalCompile(AbstractQuery.java:576)
    at kodo.query.AbstractQuery.compile(AbstractQuery.java:531)
    at
    kodo.datacache.CacheAwareQuery.compile(CacheAwareQuery.java:271)
    -- Wolfgang

  • Mime Type issue with .docx Files in Apex 4.0

    We are having issues with windows 2007 .docx documents that are when they are viewed on windows 2007 machines with ie8. If I look in the storage table the mime type is not set correctly. It is being set as application/octet-stream. When we download the file one windows 7/IE8 either the browser thinks it is a zip file or it does not recognize it.
    If I go into the back end and update the table with the correct mime type application/vnd.openxmlformats-officedocument.wordprocessingml.document it works fine.
    We have tried to update mime types on the apache server but this does not help.
    Apex seems to be deciding what mime type to populate the table with.
    It seems like I need to update apex somehow to recognize that a .docx extension should be stored as type mime type application/vnd.openxmlformats-officedocument.wordprocessingml.document.
    Does anyone know how I would do this?
    We are running Apex 4 on 10g IAS with mod/plsql
    are application is setup very similar to what is describe in this document by David Peak
    http://www.oracle.com/technetwork/issue-archive/2009/09-jan/o19browser-087025.html
    Edited by: user7660930 on Apr 18, 2011 7:40 AM

    I thought about trying to do something similar to the code above but would prefer that apex would work properly.
    I created a page with the sql region and added this code
    owa_util.print_CGI_ENV
    when I run it it shows the following environment variables. It look like the WebDB environment HTTP_ACCEPT value needs to be updated. Does any one know how to update this information on a 10gIAS server and were it is stored? I have some documenation on WebDB but none of it seems to point to the correct location of the files and there are no admin pages
    PLSQL_GATEWAY = WebDb
    GATEWAY_IVERSION = 2
    SERVER_SOFTWARE = Oracle-Application-Server-10g/10.1.2.2.0 Oracle-HTTP-Server
    GATEWAY_INTERFACE = CGI/1.1
    SERVER_PORT = 4445
    SERVER_NAME = admsunxapp04.ad.jocoks.com
    REQUEST_METHOD = GET
    QUERY_STRING = p=301:1:3167922978599440:::::
    PATH_INFO = /f
    SCRIPT_NAME = /pls/apex/sand
    REMOTE_ADDR = 172.16.14.100
    SERVER_PROTOCOL = HTTP/1.1
    REQUEST_PROTOCOL = HTTPS
    REMOTE_USER = APEX_PUBLIC_USER
    HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Tablet PC 2.0)
    HTTP_HOST = admsunxapp04.ad.jocoks.com:4445
    HTTP_ACCEPT = image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    HTTP_ACCEPT_ENCODING = gzip, deflate
    HTTP_ACCEPT_LANGUAGE = en-US
    HTTP_ORACLE_ECID = 1303315270:172.16.2.9:3032:0:2526,0
    WEB_AUTHENT_PREFIX =
    DAD_NAME = apex/sand
    DOC_ACCESS_PATH = docs
    DOCUMENT_TABLE = wwv_flow_file_objects$
    PATH_ALIAS =
    REQUEST_CHARSET = AL32UTF8
    REQUEST_IANA_CHARSET = UTF-8
    SCRIPT_PREFIX = /pls
    HTTP_COOKIE = ORA_WWV_R1=%23ALL; ORA_WWV_R2=%23ALL; ORA_WWV_R3=%23ALL; ORA_WWV_ATTRIBUTE_PAGE=4651%2C%23ALL; ORA_WWV_REMEMBER_UN=ADMIN:apex_app; ORA_WWV_USER=8A32E6579024A4F4; oracle.uix=0^^GMT-5:00; DEVL=WaSkGBNfJ6-Vgpw-6HXpHvM8:S

  • View Columns with Double Quotes

    When Creating a view I specify Column Names, but when you look at the SQL tab it puts double quotes around the columns is there a preference to turn this off? Is there a reason for it operating this way?
    CREATE OR REPLACE FORCE VIEW "MCT"."V_USER_ORGANIZATIONS" (CUSTOMERS_ID, CUSTOMER_NAME) AS
    SELECT Customers_ID, Customer_Name FROM mct.Customers
    UNION ALL
    SELECT Proc_Offices_ID *-1 as Customers_ID, Proc_Office_Name as Customer_Name FROM mct.proc_offices;
    becomes the following
    CREATE OR REPLACE FORCE VIEW "MCT"."V_USER_ORGANIZATIONS" ("CUSTOMERS_ID", "CUSTOMER_NAME") AS
    SELECT Customers_ID, Customer_Name FROM mct.Customers
    UNION ALL
    SELECT Proc_Offices_ID *-1 as Customers_ID, Proc_Office_Name as Customer_Name FROM mct.proc_offices;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The only control we have over the DDL that is generated are the options in Tools > Preferences > Database > ObjectViewer Parameters, which doesn't include an option to exclude unnecessary double quotes.
    The reason why they are put in when generating the DDL is to simplify the logic of generating the DDL - if they were not there, it would be necessary to check if names were in mixed case or not. For example, it would be possible to create a view as follows:
    CREATE OR REPLACE FORCE VIEW "My_View" ("Customer_ID", "Customer_Name") AS ...
    With this, I have explicitly said that my view and column names are case sensitive - and this is NOT equivalent to:
    CREATE OR REPLACE FORCE VIEW MY_VIEW (CUSTOMER_ID, CUSTOMER_NAME) AS ...
    That being said, as I understand it, SQL Developer uses the DBMS_METADATA package to generate the DDL and the inclusion of the double quotes is presumably the standard option with that.
    theFurryOne

  • Encrypt() returns values with double quotes

    I'm using encrypt to hide my state variables, but the results
    have double
    quotes which is killing my forms. Any suggestions? Is there a
    range the
    seed needs to be in to not produce double quotes.
    Thanks,
    Jeff

    Experiment with a different key.

  • Replace Single Quote with double quote

    Hi All,
    I have a String s="help'me'to'replace";
    i want to replace single quote( ' ) in to double quote ( " )
    The final out put should be like this help"me"to"replace
    ( Actually this string i have to pass in to an XML )
    Please help any one

    s.replaceAll("'","\"");{code}
    or just one of the String#replace() methods.
    Edited by: sabre150 on Mar 17, 2009 11:48 AM                                                                                                                                                                                                                                                               

  • Can't import csv fields starting with double quotes but lack ending ones

    Hi all,
    When I'm trying to used external table to import a csv file, specified as using comma as delimiter optionally enclosed by double quotes, some records are rejected because a field in the record has starting double quotes, but without ending ones.
    Assume the customer really want these starting double quotes, how do I change my external table specification such that these starting double quotes are treated as part of the field data and can be successfully inserted into db?
    Many thanks.

    I have no access to Oracle during weekends, so nothing can be tested. So here it goes:
    Suggestion: DELIMITED BY '","' and of course omitt ENCLOSED BY '"'
    You will have to update each row of the rows just loaded setting the first_field to substr(first_field,2) and the last_field to substr(last_field,-2)
    If all the fields are not enclosed in double quotes (TRUE for strings and FALSE for numbers and dates) the situation (syntax diagrams allow two delimiters only) is somehow more complicated, anyway you can specify DELIMITED BY ',' and update all varchar2 fields in each row of the rows just loaded setting the varchar2_field to substr(varchar2_field,2,length(varchar2_field) - 2).
    Regards
    Etbin
    After posting I noticed it's difficult to distinguish between single and double quotes:
    the first DELIMITED BY should read {single quote){double quote}{comma}{double quote}{single quote)
    the ENCLOSED BY should read {single quote){double quote}{single quote)
    Message was edited by: Etbin
    user596003

Maybe you are looking for

  • Ipod now charging, but still not showing in windows

    Hi people, I left a post a few days ago, when my computer would not even let the shuffle charge however, now the shuffle is charging and playing music, but windows or itunes still wont recognize it, so i cant try the disk manager approach or the ipod

  • Avoid local member from shared row axis report

    Hi, I have developed reports, and shared onereport with default report with row axis, when i merge the two report the local member applicable to the another report which will i don't required the formula. but one report don't need sum function at the

  • /bin/bash to write a form letter [solved]

    Ok, in principal, I need to have bash read in a file and make substitutions for variables I have defined in a skeleton file.  Kind of like a form letter.  Why?  I have torque installed on my machine and I need to have my repo-ck build script make a c

  • GeForce 7300GS on Intel Mac OS X?

    I'm looking at getting an Intel Mac, and I have a PCI Express GeForce 7300GS from my old Windows machine. Can I use this card with Mac OS X? I plan on installing Windows on the mac, and dual booting (the stuff I work with at my school and job is Wind

  • How to replace an email website address.

    My email account is being deactivated so I don't want it listed in Thurderbird. How do I remove it (the listing) and replace it with a new account? All email has been forwarded to the new account--basically the old account is dormant.