Java web application UTF-8 encoding and mswin1252 Oracle database

Hi all

We need the following:

Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
With partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options

Developing on Jdeveloper 10.1.3.5 on WinXP Pro. Our production application servers are running on Windows 2003 10.1.3.4. I was using the jdbc libraries provided, but test now with the 11.1.0.7.0 drivers, downloaded from OTN.

Database = WE8MSWIN1252 NLS_CHARACTERSET

I guess our application servers are on WEMSWIN1252.

Our application has to support french and English.

We had problems with the unmapped characters (question mark reverse) in our database, and we suspect that these are special windows extended characters. Our java web application is set to the character set iso8859-1. We suspect that it is maybe the reason why some characters were is badly encoded in the comic book. Our application is built with struts 1.2.9.

The page encoding UTF - 8 seems to be the standard for web applications. I changed our configuration of the struts controller to use UTF - 8. Using Jdeveloper OC4J local testing reveals that although the data extracted from makes it db correctly in the browser, registering with special characters is a problem.

"Stéphane" recorded under "Sta © phane".

I guess the question is here, mswin1252 is a single-byte coding scheme, but UTF - 8 is an encoding scheme of variable width and for some European characters, uses 2 bytes to represent. I think that's what I see here.

Now it is, is it possible for us to use UTF - 8 in java application, but our database in MSWIN1252? I remember reading that the best practice is always to use a character set of superset in comics, as well as its subsets in customers. In our case, we also deal with both representations of variable width. I also remember reading that JDBC is based more on the nls_lang setting... can't jdbc do charset conversion?

Thanks for the help

Generally speaking, managers Oracle will do the conversion. I can't speak for the other executives, but whatever it is based on Java is expected to perform the conversion correctly.

However, your colleague is right that it is strongly advised to have your database running with AL32UTF8 database character set. This is because when the application is configured for UTF - 8, you no longer control what characters people can conclude their browsers/clients. It is preferable to be able to store all the possible characters and no risk of data loss. In addition, any request must be fully compatible Unicode today ' today - including the backend.

-Sergiusz

Tags: Database

Similar Questions

  • Oracle Applications 12.0.4 and installing Oracle Database 11.0.1

    Hi gurus,
    I intend to install Oracle E-Business version 12.0.4 that comes with the database to Oracle 10 g 2 (database demo of Vision).

    According to certification matrix Oracle E-Business Suite 12.0.4 release supports the 11.0.1 Oracle database. So, how can I do a version of E-Business 12.0.4 use Oracle 11.0.1 vision demo and not 10 gr 2 database version.

    What I need to upgrade 10 gr 2 after installation, or is there another way?

    Thanks in advance

    As you say, you must upgrade the database after installation. For more details, please see:

    Note: 735276.1 - interoperability Notes E-Business Suite R12 with Oracle Database 11 GR 1 (11.1.0) material
    https://MetaLink.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=735276.1

  • EPM 11.1.2.3: deployment of java web applications on environment Mix Linux and windows

    Hi all

    I intend to install and configure EMP 11.1.2.3.

    We have 2 of linux and windows server 1.

    on linux, I am planning to install foundation, Essbase and planning.

    and in windows I intend to install HFM and FDMEE.

    now my question is when you perform the configuration for HFM and FDMEE, I need to deploy the java web application for HFM and FDMEE on windows.

    so everything by deploying web applications in java on windows that I put a different name for "domain name".

    as linux domain name will be 'EPMSystem', so for windows it would be different as 'EPMSystem1'.

    There will be no problem if the domain names are the same for both linux and windows?


    and for weblogic server port must be different as 7001 on linux and 7002 on HFM?


    Kind regards

    Dattatray Mate

    Untitled.jpg

    Yes, please keep another domain name...

    Port is not a problem, you can use the same port as well

    See you soon!

    SH! going

  • Unable to start the EMP - Java Web Application Server

    Hello

    I installed and configured EMP 11.1.2.3 version without any problems. But I am not able to start the server from the EMP HyS9EPMServer_epmsystem1 (squeegee Hyperion EPM Server - Java Web Application (epmsystem1)). I am getting below error messages in the log file. Please can you help me solve this problem.

    < 13 November 2014 18:26:06 IST > < Info > < security > < BEA-090905 > < disabling CryptoJ JCE provider auto-intégrité for better startup performance. To allow this control, enter - Dweblogic.security.allowCryptoJDefaultJCEVerification = true >

    < 13 November 2014 18:26:07 IST > < Info > < security > < BEA-090906 > < change the default Random Number Generator in RSA CryptoJ of ECDRBG to FIPS186PRNG. To disable this change, specify - Dweblogic.security.allowCryptoJDefaultPRNG = true >

    < 13 November 2014 18:26:07 IST > < opinion > < WebLogicServer > < BEA-000395 > < according to the contents of the extensions added at the end of the classpath directory:

    C:\Oracle\Middleware\user_projects\domains\EPMSystem\lib\audit-client.jar; C:\Oracle\Middleware\user_projects\domains\EPMSystem\lib\css.jar; C:\Oracle\Middleware\user_projects\domains\EPMSystem\lib\ctg_custom.jar; C:\Oracle\Middleware\user_projects\domains\EPMSystem\lib\ldapbp.jar; C:\Oracle\Middleware\user_projects\domains\EPMSystem\lib\opencsv-1.8.jar; C:\Oracle\Middleware\user_projects\domains\EPMSystem\lib\registry-API.jar; C:\Oracle\Middleware\user_projects\domains\EPMSystem\lib\sipactivator.jar; C:\Oracle\Middleware\user_projects\domains\EPMSystem\lib\wlpool.jar >

    < 13 November 2014 18:26:07 IST > < Info > < Server > < BEA-002647 > < plugin service, com.oracle.core.sip.activator, has been added to C:\Oracle\Middleware\user_projects\domains\EPMSystem\lib\sipactivator.jar. >

    < 13 November 2014 18:26:07 IST > < Info > < WebLogicServer > < BEA-000377 > < start WebLogic Server with Oracle JRockit (R) Version R28.2.5-50-153520-1.6.0_37-20121220-0844-windows-x86_64 of Oracle Corporation >

    < 13 November 2014 18:26:11 IST > < Info > < management > < BEA-141107 > < Version: WebLogic Server 10.3.6.0 Mar 15 Nov 08:52:36 PST 1441050 2011 >

    < 13 November 2014 18:26:14 IST > < critical > < WebLogicServer > < BEA-000362 > < server failed. Reason: [management: 141266] failed to parse in the config.xml file: java.lang.AssertionError: java.lang.ClassNotFoundException: com.bea.wcp.sip.management.descriptor.beans.SipServerBean >

    < 13 November 2014 18:26:14 IST > < opinion > < WebLogicServer > < BEA-000365 > < changed failed State Server >

    < 13 November 2014 18:26:14 IST > < error > < WebLogicServer > < BEA-000383 > < is not an essential service. The server will shut down >

    < 13 November 2014 18:26:14 IST > < opinion > < WebLogicServer > < BEA-000365 > < server status changed to FORCE_SHUTTING_DOWN >

    Thank you

    Michel K




    deployment succeeded... Reinstall and reconfigure or redeploy.


    Concerning

  • difference between authorized and unauthorized oracle database

    Hi all

    Please let me know that the difference between the authorized and unauthorized oracle database. And how to check the installed database has a license?

    Sheesh - another person who sprays the duplicates of the question in every sense. A single copy of the issue, waiting around a decent amount of time (at least a day) would be sufficient. The copy of my response to the other answer:

    Rahul K. Thakar says:
    Hi all

    Please let me know that the difference between the authorized and unauthorized oracle database.

    Technically there is no difference between the same version the 'licence' and 'unlicensed' installation. (In fact, there is no such thing as 'without licence' - you agree to a no cost developer license when you download it.)

    No bombs, screens reminder or functional limitations. No need of prison Don't Break anything.

    In practice only gives the developer license, access you the media and therefore no patches. And so you will live with bugs and potential security vulnerabilities. If it's important, is quite another story.

    and how to check the installed database is allowed?

    You will be able to go to your bank statement or credit card and see a payment to Oracle. And you will get a contract 50 gazillion page, in small print, which tells you what you bought and what you agree to make and use.

    You are on your honor to follow the details of this beautiful document. You can note that, with all licenses, you agree that Oracle can visit you to confirm that you are indeed honour your agreement. And if not, you have the option to ' splain why not in front of a judge.

  • Problem with the Java Web Application

    Hello

    I have a web application.
    The web server is in the time zone CST and the DB server in zone PDT.
    When we input a date of the browser say '2011-09-26 + 05:30 ' we who convert in milliseconds and save in DB, which is 1316975400000 for the example above.

    When we have to be back the date that we convert milliseconds to date to end of server that is in the time zone PDT and ends in "25/09/2011.

    A Solution I found when I did was:
    "To pass a Date and a time zone; Jet lag, we stayed was the time zone by default for the customer. On the side server, we have shaped the date by using the zone passed from the client is not using the server's default time zone. »

    Please let me know if it is the ideal solution, or there at - it another way to do it.

    It is a general problem and responded to many forums. But still I wanted to check if there is another solution for this.

    Thank you

    828549 wrote:
    Please let me know if it is the ideal solution, or there at - it another way to do it.

    Yes: Do not save the zone at all; It simply adds unnecessary objects. And do not convert to milliseconds first. Simply store the date as a SQL Date or Timestamp.

    Java dates, and most date from database, I know, are stored as compensation from a point fixed in time ( same point anywhere in the world) then, unless you use a very obscure (and non-standard) database, the JDBC driver must be able to convert a java.sql.Date in internal format of the database without any problems.

    Then, when you want, just use the normal methods of the db for the display. They will take care to display the correct time for the local time zone.

    Winston

  • recommendation of the Java web application development kit for small application

    Hi all

    I have an application developed using developer 6i, forms, and reports, as well as the Oracle 10 g for a school database. The application consists of student information, collection of fees and sms sending to parents.

    There are a lot of problems, with this app, DB is very heavy I'm using Oracle DB 10 g, installtion of 6i developer on the latest version of windows is another puzzle etc.

    Now, I want to pass to the application of the latest technology, but want this are light weight.

    Can I develop an application of light weight with ADF web application?

    Also, I want to use mysql as database.

    Thank you

    (1) you can use mySQL. I prefer Oracle XE, as it is better suited for the ADF.

    (2) application No. needs a weg server web. You can use weblogic or glassfish

    (3) just a browser

    Timo

  • Creating a Web application for the first time with the database

    I'm new on using Dreamweaver, I used HTML in a notebook for my sites more than a decade. And a lot has changed since then.

    I am interested in creating a Web application and hosting it. I currently use Excel for my business to make our schedules used on a weekly basis. I am wanting to create a Web app equivalent to the Excel workbook that I use for a web only Annex myself and 15 years and most other companies can use to make their own calendars. I want to especially do so that I can keep adding features and update and bug fixing without having to force everyone to switch to a new Excel workbook whenever I have released a new version of it.

    Currently I can't fix or change anything to the workbook just because it's so formula and microphones intense code, it is too much time to re - write again.

    So here are my questions:

    • What resources would I need to create a Web application and to be able to a lot of people able to use it at the same time and not to worry others see their schedule, they create?
    • What are the services I need to buy, like web hosting? Would what specific things like MySQL or others I need?
    • Any person experience, what costs would I expect to spend on a project like this?

    Here's the Excel file that I currently use to make my schedule. Feel free to download and read to get a better understanding of what I'm trying to do.

    http://1drv.Ms/1wPDkz3

    Thank you.

    So here are my questions:

    • What resources would I need to create a Web application and to be able to a lot of people able to use it at the same time and not to worry others see their schedule, they create?
    • What are the services I need to buy, like web hosting? Would what specific things like MySQL or others I need?
    • Any person experience, what costs would I expect to spend on a project like this?

    * You must a good coder, PHP and a MySQL database. The encoder would require producing a the user authentication section, a section of the display for each user and a section change to edit/enter a program

    * Other than hosting with PHP and MySQL, nothing. However, it is possible that you could find something already put together and open source - visit this link.

    employee open source php scheduling

    * Depends on your skills. However hiring a freelancer to implement free stuff you risk $500-$1000.

  • UTF-8 encoding and special characters PROBLEM

    Hello

    I have attached a code: when I run this code, I see the french instead of french.

    Can someone help me out here?

    Thank you!!

    Bert

    > Can someone help me out here?
    > you said CF that your page is utf-8, is it?

    In fact (s) he did NOT SEE that the template is UTF - 8, which is the
    problem.

    You told CF to expect form and URL in UTF - 8, you said it
    to deliver UTF-8 in the browser and it said the browser that takes place is
    UTF-8, but you didn't SEE to READ THE TEMPLATE in UTF-8 format.

    http://livedocs.Macromedia.com/ColdFusion/7/htmldocs/00000312.htm

    --
    Adam

  • HIPAA, Sarbanes-Oxley and the Oracle Database private virtual

    ORACLE VPD is compatible with HIPAA, Sarbanes-Oxley?
    ORACLE VPD is not compatible with a certification?

    Thanks in advance,
    Alexandre Bailly

    user8716187 wrote:
    ORACLE VPD is compatible with HIPAA, Sarbanes-Oxley?
    ORACLE VPD is not compatible with a certification?

    This forum is used is discussions on the Certifications issued by Oracle (OCA, OCP, OCÉ, OCP) in individuals who have satisfied the requirements of Certification.

    Sox etc are not disccused here.

    The following link may or may not be useful [http://www.oracle.com/technology/deploy/security/index.html]

    I suspect that the general database imen forum is the best place for your question... others know maybe more appropriate.

    In general, it is often discussed in respect of the security.

    11 GR 2 also has features that can better support certain aspects of the compliance of socks.

  • Java Web Start application runs under jre8u40 but not jre8u51

    We have a Java web application that uses javaws. It runs very well under the update of Java 8 40, but under the update Java 8 51 jp2launcher.exe stops right, without launching the application.

    • I found the papers in C:\Users\me\AppData\LocalLow\Sun\Java\Deployment\log, but they are identical between j8u40 and j8u51 (except of course for the order of pots are loaded, the version of jre and the start time).
    • I connected the launch using Process Monitor for the two versions of jre. Under j8u51, jp2launcher.exe ends with just the result of 'SUCCESS' Comparing the two newspapers procmon, I can't choose anything unusual. They have both search in the directory C:\Users\me\AppData\LocalLow\Sun\Java\Deployment and their respective C:\Program Files\Java\jre1.8.0_XX\lib directories and others like, but then the j8u51 there is only.
    • The Windows event logs show any what that touch of Java.
    • I managed to run the jnlp whose value "JAVAWS_VM_ARGS = - Xcheck:jni - XX: - TraceClassLoadingPreorder - XX: + PrintCommandLineFlags-verbose: jni-verbose: class - verbose: gc - XX: + PrintGCDetails-Djava.util.logging.config.file=C:\misc\logging.properties" and connect the stdout/stderr. It looks like an end to newspapers javaws and jp2launcher for versions of the output, then both jre8u40 and jre8u51. Probably in the j8u40 version it launches another jp2launcher.exe to run the application.
      • Comparing newspapers two output gives nothing interesting. Classes are loaded in almost the same order, for the most part identical classes other than the few differences that are explained easily by just be more up-to-date used classes.
    • Finally, I was able to launch the application directly, using java.exe, by getting the customer their unpacking and installing the server files. The application itself works fine in jre8u51, so the problem is definitely javaws himself.

    I find very little documentation on the inner workings of Java Web Start and no documentation at all on jp2launcher.exe. Can anyone suggest what could go wrong here, or other diagnostic measures I can take?

    e: sorry for the strange user name. I tried to change it in my profile, but the forums don't seem to accept the change.

    Hi people.

    I managed to find the solution. There are several factors that interact and I think one of them is a bug in Java Web Start.

    Please see full report at http://stackoverflow.com/questions/31556273/java-web-start-application-runs-under-jre8u40-but-not-jre8u51

  • Application Modules Resuablity face-to-face Web and Non Web Application

    I have a web application that uses the plsql API list and not of Java Web Application that uses the same API plsql can I write an Application Module and use it in the web not Application?

    If not
    If there is a way to manage for the Non Web Applications connection pooling
    How can I share common codes that plsql api call between Web and Non Web application

    IF yes how can I manage the DBTransaction creation for non web?

    Hello

    You can use application Modules in non-web environments.

    String amDef = "model.module.AppModuleAM";
    Config = "AppModuleAMLocal";
    AppModuleAMImpl app = Configuration.createRootApplicationModule (amDef, config) (AppModuleAMImpl);

    Frank

  • Test a web application that uses the emulator of the Blackberry, is - it possible?

    Hello everyone,

    I have a small java web application running on Apache Tomcat on a local computer. It works fine on my PC, but it is meant for Blackberry devices. Before I put in our web server, I want to test it on a Blackberry 8300 and 8900 emulators. Is this possible? I developed this web application using spring on Netbeans IDE, i.e. no special tool Blackberry.

    I appreciate every tip and trick!

    Thank you.

    Mazen.

    Thanks again for your response,

    I did the Simulator works well, but in another installation of Tomcat and Eclipse-Tomcat-Blackberry Simulator running the port. ELL, it works unless I have some JavaScript problems, so :-)

    Thanks again

    Mazen

  • Camera work is not in HTML5 on BB Z10 web application

    Hello

    I'm working on a simple HTML5 web application which allows users to take a photo and upload it.

    IM using the following HTML5 code which works fine in the BB Z10 Simulator:

    
    

    However, when you run the web application business of a real BBZ10, I get only a file browser which lists all images that were taken by the camera before - icon to directly access the camera and take a picture is missing.

    Any idea what's going wrong here?

    -Unfortunately, I can't test the web application on the side deprived of my BB (this is not an option that the web application should work commercially and I can not access the server from the private side)

    -WebWorks Help or some other related client API is not an option, we want to stick to the plain, client-agnostic HTML5

    -J' already found this link, http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/BB10-Webworks-Camera-API/m-p/245... (exactly the code that I use also).

    -Z10 BB model STL100-2, the software Version is 10.2.0.424

    Any help would be greatly appreciated

    Kind regards

    Sebastian

    Unfortunately the camera app is not present in the scope of work; This means that you can not call the specific application of the camera .

    From what you see, it seems that this code is either:

    
    

    (A) directly rely on the camera application; or

    (B) invoking the default image into the Manager.

    If it is (A), then we can not use the approach described above through the entry. However, if it is (B), then taking another photo manager is installed, like peaks cloudy, then he must be able to be invoked. A simple test would be to install the cloudy peaks and see if it is called, or if you still see issues.

    http://devBlog.BlackBerry.com/?s=cloudy+pics&x=0&y=0

    If you still see issues, this means that procedure input specifically called the camera application.

    Here, the solution would be to create your own button to invoke the taker of the photo. The framework of the call allows you to directly call the cloudy peaks, or call the taker of the generic photo (which would by default Pics cloudy if the camera app is not present.)

    https://developer.BlackBerry.com/HTML5/documentation/beta/camera.html

    You must use the call as described in the link above, but omit the target ID; This will allow the system to choose the best Manager (available) for the invocation as opposed to explicitly point the camera application.

    For a full text on it, the 4th part of the series of peaks cloudy blog gives a lot of good information and background on this issue.

    http://devBlog.BlackBerry.com/2014/01/cloudy-pics-part-4-cards-and-Enterprise/

  • Gzip request to the web application server Java

    Hi experts,

    My first post here.

    I am building a Java for Blackberry application that needs to send data relatively large (in the hundreds of kb/s) on a web server.

    Since the mobile internet connection is not fast enough transfer a lot of data will take a lot of time.

    Question is, how can I compress data with gzip and handle it on my web server.

    Currently, I have

    String data = "a=b&c=d";
    OutputStream outputStream = httpConnection.openOutputStream();
    outputStream.write(data.getBytes());
    outputStream.flush();
    

    I'm guessing that blindly that I need to do something like

    GZIPOutputStream gzipOutputStream = (GZIPOutputStream) httpConnection.openOutputStream();
    gzipOutputStream.write(data.getBytes());
    gzipOutputStream.flush();
    

    Is this correct? Moreover, how should I handle it on my Web server?

    Would my server Web decompress this data automatically, so I can just get the values of the parameters a and c normally?

    Can I send different Content-Type?

    Please notify. Thanks in advance.

    As shown rcmaniac25, you must wrap the output stream you get from the connection inside a GZIPOutputStream new object. For any compression, however, you must also specify the compression level.

    As to whether the data will be decompressed on the side server depends on the server. At a minimum, you must set the content-encoding property for the connection before the display of the data. I highly recommend adjustment of the length of the content; to do this, write the data compressed in a buffer of bytes. I also suggest setting a user-agent header, because some servers incorrectly claims that come without one. Finally, I suggest you add a header x-rim-transcode-content with the value 'none' from the data is not intended for a browser. (The server must also affect this header in the response.) This is particularly important if through MDS or BIS.

    Put them all together, it might look like this:

    String data = "a=b&c=d";NoCopyByteArrayOutputStream bos = new NoCopyByteArrayOutputStream();GZIPOutputStream gos = new GZIPOutputStream(bos, GZIPOutputStream.COMPRESSION_BEST);gos.write(data.getBytes());gos.close();int len = bos.size();// unqualified constants below are available if your class// implements net.rim.device.api.io.http.HttpProtocolConstantshttpConnection.setRequestMethod(HTTP_METHOD_POST);httpConnection.setRequestProperty(HEADER_USER_AGENT, "MyUserAgent");httpConnection.setRequestProperty("x-rim-transcode-content", "none");httpConnection.setRequestProperty(HEADER_CONTENT_TYPE,    CONTENT_TYPE_APPLICATION_X_WWW_FORM_URLENCODED);httpConnection.setRequestProperty(HEADER_CONTENT_ENCODING, "gzip");httpConnection.setRequestProperty(HEADER_CONTENT_LENGTH,    Integer.toString(len));OutputStream os = httpConnection.openOutputStream();os.write(bos.getByteArray(), 0, len);os.close();
    

    If you post something in addition to the url-encoded name-value pairs, of course, you must use the appropriate content-type header value.

    I think (although I've never tried) that Apache will honour the content-encoding header on poles, condition mod_gzip is turned on (which it usually is). Most of the other web servers (Microsoft IIS, Sun Java Web Server, Nginx, etc) also support HTTP compression.

    I suggest you to test this with a simple script that simply takes your POST data. If it resonates as expected, you're good to go (but see below).

    If the server does not automatically unzip the application, then you will manage all script processed the MESSAGE. PHP, Perl, Ruby, etc. all are excellent tools to treat the gzip data. You'll just have to deal with parsing the url-encoded name-value pairs explicitly. But there are great tools in all these languages for that, too.

    Be aware that there may be limits to the amount of data that you can POST in a single application. You may need to consider dropping your messages in blocks of manageable data.

Maybe you are looking for

  • F11 does not work

    When I press F11 only box Firefox will avay.I can still see the other pages/tags

  • close the button pinned tabs

    When I started today my Firefox browser, I noticed there are close buttons to the right of each of my PINNED tabs. I do not like how I can remove them please? Sometimes, I clicked the button close by error when switching between my pinned tabs and I

  • No Signal message when the monitor is connected to the graphics card.

    Thus, after posting this problem on different forums, I was told that my power (300w) was too low for my Radeon HD 7570 I tried to install. After you install a 585w power supply, the problem is still happening. Model: HP Pavilion h8 - 1240 t OS: Wind

  • Orphaned Dell partition

    Hello I bought a Dell desktop computer, about 3 years, I've worked on years of the company, so that I work.  He had his drive erased C and another OS installed on it.  I can see the dell recovery partition in windows partition manager and would like

  • How to determine the server message on existing unity store

    I have an existing unit with a separate message store. The recovery of message for the voicemails stored user is about 5 to 8 seconds. This just started happening. How can I determine which server has the message store and what could cause me behind?