Character set / Meta

Can anyone help me with a character-issue?
I want the following line to appear in the header of the generated html-page :
<META http-equiv="Content-Type" content="text/html" charset="ISO-8859-1">
Swedish characters does appear OK in the html-body but is shown as rubbish in the browser.
My xsql-file look like this:
============================
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<page connection="n2000" xmlns:xsql="urn:oracle-xsql">
<xsql:query>
SELECT Name,Date
FROM Student
</xsql:query>
</page>
My xsl-file look like this:
===========================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<html>
<head>
</head>
<body>
<xsl:for-each select="page/ROWSET/ROW">
<xsl:value-of select="Name"/>
<xsl:value-of select="Date"/>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
With these two files the meta-tag looks like:
<META http-equiv="Content-Type" content="text/html">
Is there another way to specify charset than by "encoding" in the xsql and xsl-files ?
Thanks.

I found out how to this myself:
I just added:
<media-type>text/html</media-type>
to the file XSQLConfig.xml.
null

Similar Messages

  • UTF/Japanese character set and my application

    Blankfellaws...
    a simple query about the internationalization of an enterprise application..
    I have a considerably large application running as 4 layers.. namely..
    1) presentation layer - I have a servlet here
    2) business layer - I have an EJB container here with EJBs
    3) messaging layer - I have either Weblogic JMS here in which case it is an
    application server or I will have MQSeries in which case it will be a
    different machine all together
    4) adapter layer - something like a connector layer with some specific or
    rather customized modules which can talk to enterprise repositories
    The Database has few messages in UTF format.. and they are Japanese
    characters
    My requirement : I need thos messages to be picked up from the database by
    the business layer and passed on to the client screen which is a web browser
    through the presentation layer.
    What are the various points to be noted to get this done?
    Where and all I need to set the character set and what should be the ideal
    character set to be used to support maximum characters?
    Are there anything specifically to be done in my application code regarding
    this?
    Are these just the matter of setting the character sets in the application
    servers / web servers / web browsers?
    Please enlighten me on these areas as am into something similar to this and
    trying to figure out what's wrong in my current application. When the data
    comes to the screen through my application, it looks corrupted. But the asme
    message when read through a simple servlet, displays them without a problem.
    Am confused!!
    Thanks in advance
    Manesh

    Hello Manesh,
    For the database I would recommend using UTF-8.
    As for the character problems, could you elaborate which version of WebLogic
    are you using and what is the nature of the problem.
    If your problem is that of displaying the characters from the db and are
    using JSP, you could try putting
    <%@ page language="java" contentType="text/html; charset=UTF-8"%> on the
    first line,
    or if a servlet .... response.setContentType("text/html; charset=UTF-8");
    Also to automatically select the correct charset by the browser, you will
    have to include
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> in the
    jsp.
    You could replace the "UTF-8" with other charsets you are using.
    I hope this helps...
    David.
    "m a n E s h" <[email protected]> wrote in message
    news:[email protected]...
    Blankfellaws...
    a simple query about the internationalization of an enterpriseapplication..
    >
    I have a considerably large application running as 4 layers.. namely..
    1) presentation layer - I have a servlet here
    2) business layer - I have an EJB container here with EJBs
    3) messaging layer - I have either Weblogic JMS here in which case it isan
    application server or I will have MQSeries in which case it will be a
    different machine all together
    4) adapter layer - something like a connector layer with some specific or
    rather customized modules which can talk to enterprise repositories
    The Database has few messages in UTF format.. and they are Japanese
    characters
    My requirement : I need thos messages to be picked up from the database by
    the business layer and passed on to the client screen which is a webbrowser
    through the presentation layer.
    What are the various points to be noted to get this done?
    Where and all I need to set the character set and what should be the ideal
    character set to be used to support maximum characters?
    Are there anything specifically to be done in my application coderegarding
    this?
    Are these just the matter of setting the character sets in the application
    servers / web servers / web browsers?
    Please enlighten me on these areas as am into something similar to thisand
    trying to figure out what's wrong in my current application. When the data
    comes to the screen through my application, it looks corrupted. But theasme
    message when read through a simple servlet, displays them without aproblem.
    Am confused!!
    Thanks in advance
    Manesh

  • Character Setting Problem ( mysql + tomcat )

    Hi all;
    I am using mysql dbms and tomcat web server(servlet). But in my web page, the characters are shown broken. I set the character set of the mysql database. They are shown well in the dbms console. And also I set the html code with appropriate character set in the meta tags. Do I need to make any extra setting? Perhaps in the tomcat or anywhere else? What is the problem here?

    assumes:
    1. using jsp to display the db data
    2. db encoding is ISO-8859-1
    3. jsp encoding is utf-8
    for the very first line of the jsp file:
    <%@ page pageEncoding="utf-8" %>before displaying the data:
    String str = <data from db>
    str = new String(str.getBytes("ISO-8859-1"), "UTF-8");

  • Font character set

    For years I've been using this in my head section:
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    even though I'm told that it is better to use this:
    <!doctype html>
    <html lang="en">
    <head>
    <meta charset="utf-8" />
    The both character sets look the same in browser preview (and presumably online.)
    However, with the latter, "more correct" charset, the fonts in Design View look too large and also bold, so I have stayed with the older charset.
    Is this connected with the setting I use for fonts "Western European"?
    Should I be using "Unicode" in DW 5.5?

    Possibly.
    Two things to check first, run your pages through the validators here (especially the html validator) and clear up any errors. It may just be a small error in your html that makes DW's Design View go nutty...
    HTML Validator: http://validator.w3.org
    CSS Validator: http://jigsaw.w3.org/css-validator/
    The CSS validator is a little less useful because it doesn't understand all of the vendor prefixes so it will throw more errors when there really aren't any.
    If you clean your code completely and it's still happening, posting a link to a page on your server is preferred. As a distant second, the complete code of the page and css posted to the forum may help.

  • Western iso 8859-1 character set is gone, "other (including Western" does not work. Why did you take it out?

    Some websites need Western ISO 8859-1 character set to run properly and you have taken it away in favour of "other(including Western)", now the site does not work properly. Why did you take it out and can you please put it back.

    ISO-8859-1 and Windows-1252 should be equivalent. Can you provide an example of a page that doesn't display properly?
    If you have to manually select a character encoding to view the page correctly, then the site is broken and you should notify its owner that it needs be fixed. Websites specify the character encoding in one of two ways:
    * [http://www.w3.org/International/tutorials/tutorial-char-enc/ Handling character encodings in HTML and CSS | W3C]
    # The ''Content-Type'' response header.
    # The ''meta'' tag in the page source.
    ''Henri Sivonen (:hsivonen) wrote:''
    <blockquote>We are in the process of implementing http://encoding.spec.whatwg.org/ . The process involves removing support for legacy character decoders that aren’t really necessary for supporting existing Web content.</blockquote>

  • File System Character Set Converter

    We are currently trying to understand the impact to our custom code in changing character sets. There is a utility(option under adadmin(Patch 1508473), that allows you to convert files in APPL_TOP. Does anyone know if this utility can be used on any directory?
    Thanks,
    Tim

    Thank you...
    What is the database version?We are using v8i
    What is the name of the utility and more details on where it can be found?"It is called the File System Character Set Converter"
    You can it discribed and where it is used in a paper titled:
    "Migrating an Applications Installation to a New Character Set" dated 11/28/2001 on Meta Link
    Is this iFS?No, from what I have found it is a utility under adadmin. It is installed via a patch #1508473.
    My question is does it automatically default to scanning files under APPL_TOP? or can I point it at another directory to scan.
    regards,
    Tim

  • Java.sql.SQLException: Non supported character set: oracle-character-set-860

    Hi,
    I am working on resultset.updateRow() and found some problem.
    I've tried the same jsp page on 2 WebLogic server
    one is on a Solaris Platfoem and another is on a NT platform
    On NT Platform it seems to be OK and update the database successfully.
    On Solaris, on error message on WebLogic log but error found in the JDBC log
    java.sql.SQLException: Non supported character set: oracle-character-set-860
    P.S. both jsp page connection to the same database server Oracle 8
    The testing JSP page:
    <%@ page language="java" import="java.sql.*, oracle.jdbc.driver.*,
    java.util.*, javax.sql.*" %>
    <html>
    <head>
    <title>Weblogic Oracle Testing - Store Procedure</title>
    <meta http-equiv="Content-Type" content="text/html; charset=big5">
    </head>
    Oracle Connection Testing
    <br>
    <body bgcolor="#FFFFFF">
    <%
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    String sql;
    Driver myDriver =
    (Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    try {
    conn=DriverManager.getConnection("jdbc:oracle:thin:sa/z0y1z2y3@oradev01:1521
    :DEV01a");
    DatabaseMetaData DBMetaData = conn.getMetaData();
    boolean support1 =
    DBMetaData.supportsResultSetType(ResultSet.TYPE_SCROLL_SENSITIVE);
    boolean support2 =
    DBMetaData.supportsResultSetType(ResultSet.CONCUR_UPDATABLE);
    %>
    <p><%=support1%></p>
    <p><%=support2%></p>
    <%
    //create a statement
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    //execute a query
    rs = stmt.executeQuery("SELECT tbl_web_trx_hdr.* FROM tbl_web_trx_hdr");
    int concurrency = rs.getConcurrency();
    int type = rs.getType();
    %>
    <p>concurrency: <%=concurrency%></p>
    <p>type: <%=type%></p>
    <%
    rs.moveToInsertRow();
    rs.updateString("org_idx", "CCC");
    rs.updateString("trx_num", "ABC2");
    rs.updateDate("trx_dte", java.sql.Date.valueOf("2001-06-01"));
    rs.updateString("description", "123");
    rs.insertRow();
    rs.updateRow();
    } catch (SQLException e)
    { System.out.println("SQLMessage: " + e.getMessage());
    finally
    { rs.close();
    stmt.close();
    conn.close(); }
    %>
    </body>
    </html>
    Please help
    regards,
    Fannie

    yupp finally i got the solution. . .
    I was using connection from tomcat connection pooling.
    Hence, even though i was setting the classes12.jar and nls_charset12.jar in the classpath and compiling, -In runtime tomcat was using its own classes in the common/lib folder. . .(which might not support oracle-character-set-178.)
    So just added this jars into the common/lib of tomcat instead of web-inf/lib of my project
    and things began working. . .
    Thanks for the hint jshell. . .

  • Character set changed

    I met a big problem.
    I set the character set to WE8ISO8859P1 by mistaken.
    and thousands of records in Japanese werer inserted.
    are these records saved in Japanese correctly ?
    now I reconstructed the DB in JA16SJIS.
    and How can I migrate the Japanese records in the old
    database to the new one ?
    what should I do ? waiting for your help.

    You have to recreate the database again because the national character set and the database character set can not be changed after the database is created. If you want to get detailed information about it you can read this white paper :
    http://otn.oracle.com/pls/db92/db92.to_pdf?partno=a96529&remark=docindex
    [email protected]
    Joel P�rez

  • How do I specify character set encoding?

    Hi,
    I already defined sub-class META from DOCUMENT class thru xml.
    Now I am trying to upload META files thru xml and its working fine.
    But when I see properties from web, I don't see "Character Set" define.
    As a result I can't use BufferedReader(doc.getContentReader())
    Exception in thread "main" oracle.ifs.common.IfsException: IFS-32245: Cannot con
    vert content to Reader - content does not have an associated character encoding.
    at oracle.ifs.server.S_Media.convertInputStreamToReader(S_Media.java:1960)
    at oracle.ifs.server.S_Media.getReaderFromObject(S_Media.java:1423)
    at oracle.ifs.server.S_Media.getContentReader(S_Media.java:1408)
    How can I specify encoding character set from xml?
    Of if possible can I specify while defining class(META in this case).
    Thanks,
    -Niraj

    Luis,
    Each take encoding name arguments using the Java naming conventions.
    If you want to do this automatically when you upload your XML file, you
    will need to write a server-side representation of your "META" ClassObject
    and provide an 'extendedPostInsert' implementation. In this method, you can
    parse the XML content and pull out an encoding if you specify it within the
    XML file. Could you explain in little more details?
    If you can provide me links to any resouces, that would be great.
    Thanks,
    -Niraj

  • ORA-12712 error while changing nls character set to AL32UTF8

    Hi,
    It is strongly recommend to use database character set AL32UTF8 when ever a database is going to used with our XML capabilities. The database character set in the installed DB is WE8MSWIN1252. For making use of XML DB features, I need to change it to AL32UTF8. But, when I try doing this, I'm getting ORA-12712: new character set must be a superset of old character set. Is there a way to solve this issue?
    Thanks in advance,
    Divya.

    Hi,
    a change from we8mswin1252 to al32utf8 is not directly possible. This is because al32utf is not a binary superset of we8mswin1252.
    There are 2 options:
    - use full export and import
    - Use of the Alter in a sort of restricted way
    The method you can choose depends on the characters in the database, is it only ASCII then the second one can work, in other cases the first one is needed.
    It is all described in the Support Note 260192.1, "Changing the NLS_CHARACTERSET to AL32UTF8 / UTF8 (Unicode)". Get it from the support/metalink site.
    You can also read the chapters about this issue in the Globalization Guide: [url http://download.oracle.com/docs/cd/E11882_01/server.112/e10729/ch11charsetmig.htm#g1011430]Change characterset.
    Herald ten Dam
    http://htendam.wordpress.com

  • Oracle 8.1.5 install on Linux Redhat 6.0: character set (and other) problem(s)

    I am trying to install Oracle 8i on Linux and it does not work : once the install is finished, I have a message saying that "Character Set not found".
    I am runing a french version of Linux (fr-latin 1) and I try to install Oracle with French and English as languages
    An other problem about this install : Oracle does not seem to recognize that I have 6,9 Giga for it to install, and says that I have not enough space for the install...
    And at the end of the install, it takes for ages (about 15mns) during which nothing seems to happen. On one machine I got out of this phase, but on the other I never saw it finish, it looks as if the computer crashed. Is that normal?
    I went through all the initialization phases, set the correct environment variables...
    thanks
    Solange
    null

    I've been dealing with the same problems in the english version but could bypass thiss by doing the folowing.
    -Just ignore the disk space stuff
    -Ignore the charset message, also
    -When creating a database, choose custom and then select the WE8ISO8859P1 char set. It worked for portuguese, must work for french also.
    -Everyone here recommended, and I do the same, leave the database creation for later, not during instalation.
    Good Luck!

  • The ADO NET Source was unable to process the data. ORA-64203: Destination buffer too small to hold CLOB data after character set conversion.

     We developed a SSIS Package to pull the data From Oracle source to Sql Server 2012. Here we used ADO.Net source to pull the records from Source but getting the below error after pulling some 40K records.
      [ADO NET Source [2]] Error: The ADO NET Source was unable to process the data. ORA-64203: Destination buffer too small to hold CLOB data after character set conversion.
    [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. 
     The PrimeOutput method on ADO NET Source returned error code 0xC02090F5. 
     The component returned a failure code when the pipeline engine called PrimeOutput(). 
    The meaning of the failure code is defined by the component, 
    but the error is fatal and the pipeline stopped executing. 
     There may be error messages posted before this with more 
    information about the failure.
    Anything that we can do to fix this?

    Hi,
      Tried both....
      * Having schema type as Nvarchar(max). - Getting the same error.
      * Instead of ADO.Net Source used OLEDB Source with driver as " Oracle Provide for OLE DB" Getting error as below.
           [OLE DB Source [478]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
           [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE DB Source returned error code 0xC0202009.  The component returned a failure
    code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the
    failure.
    Additional Info:
       * Here the Source task is getting failed not the conversion or destination task.
    Thanks,
    Loganathan A.

  • Message uses a character set that is not supported by the internet service

    Does any one have any advice on how to fix this problem?
    E-mails sent from my iphone 3G periodically arrive in an unreadable form at the recipient. The body of the e-mail has been replaced with the message "This message uses a character set that is not supported by the internet service...." The problem e-mails also include an attachment that contains an unformatted text file containing the original message surrounded by what appears to be lots of formatting data that is displayed as gibberish.
    This occurs sometimes, but not always, even with the same recipients. I am sending e-mail through a G-mail account that is configured on the iphone using IMAP. I have tried the gmail account to use the two available formatting options for mail, but neither fixes the problem.
    I have also upgraded to 2.01 and restored a few times without impact.

    Hi,
    I got somewhat similar problem with special charecters(German umlaud �,�,�..).
    I create a file with java having special charecters in it. Now if I open this file I am able to view the special charecters in it.But If I attach this file send it using following code then receiver can not see the umlaud charecters in it.They get replaced by _ or ?
    MimeBodyPart mbp2 = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(fileName);
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setFileName(output.getName());
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp2);
    msg.setContent(mp);
    Transport.send(msg);
    From you message it looks like you are able to send the mail attachment correctly(by preserving special charecters).
    Can you tell me what might be wrong in my code.
    I appriciate your efforts in advance.
    Prasad

  • Oracle XE and character set

    Hello all,
    I installed Oracle XE on RHEL 4 Linux and I found out that database character set is AL32UTF8. Does anyone know why oracle choose this character set? Maybe because of NLS_LANG env variable? Is it possible to change it to EE8ISO8859P2? Since database is still empty I can drop it and crate new database.
    Do you think it is possible to set some env variables and do new oracle xe instalation including database with iso charset?
    I want to have EE8ISO8859P2 charset because of doing exp/imp from another oracle iso db to oracle xe and it is much easier to do this without charset conversion.
    Any help will be appreciated.
    regards,
    Miha

    When you download XE, you have a choice - take the 'western european' character set download, or the 'unicode' download.
    No other choices.
    Join us over in the XE forum where people have discussed this and found workarounds. Info about finding that forum at Re: Oracle XE Installation failed

  • Character sets and ado

    I have a table with a clob field on an Oracle 8.1.7.4 database. When querying the clob field via odbc and ado the value is truncated. The Oracle server and client are using a WE8ISO8859P1 character set. Has anyone come across this before.
    Thanks.

    I believe the data should be able to be represented by IS0-8859. The data is a long random string of characters that represents a fingerprint image.
    We seem to only get 996 characters back from the database. If I do a getchunk on the data then I get 996 characters of data, then 996 NULLS, then 996 characters of data and so on. The 996 NULLS should be data.
    The data is in the database because I can do a dbms_lob.substr and get the correct info back.

Maybe you are looking for

  • How can I "nest" CSS span tags?

    I have a piece of text to which I want to apply three successive CSS classes, making increasingly broad selections of the text.  (Or, conversely, apply to the broadest span of text and then selectively style smaller subsets of the inner text.)  Eithe

  • Which are the advantages of OWB Mappings over PLSQL code?

    Hi, I was wondering which are the advantages of OWB (10gr2 or 11g) Mappings vs simple PLSQL code when the mappings are, for performance reasons, only generated in set based mode. Regards Maurice

  • For object RF_BELEG 2020, number range interval 50 does not exist FBN1

    Hi Guru's While posting GR i am getting this error For object RF_BELEG 2020, number range interval 50 does not exist FBN1 kindly guide me to slove this error. Thanks in advance Regards Anandh

  • When I restore my mac in time machine, does it restore drive partititions

    OK so heres my story. I had XP on a partion on my mac running through boot camp. I didn't have any vital information so I decided to just delete the partition and start over with windows 7. I deleted the partition with disk utility instead of the boo

  • Web Page Text Disappearing in Design View

    Hi, I'm using Dreamweaver 8, and I am loading the page of an existing web page into Dreamweaver (page was coded in notepad, not in Dreamweaver). The web page uses CSS and is full of text. Problem is, I cannot see any of the text that is in a table wh