Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Outputting data in UTF-8

Outputting data in UTF-8

From: Jeremy <newspostings_at_hazelweb.co.uk>
Date: Thu, 17 Mar 2005 09:58:57 -0000
Message-ID: <MPG.1ca3652d693e396a989dda@news.individual.net>


We are sending XML to a 3rd party on request and this is being delivered from a 9iR2 database running on Solaris and using Oracle HTTP server and mod_plsql.

The 3rd party has told us that the data should be in UTF-8 encoding instead of ISO-8859-1

I had assumed (naively it appears) that simply setting the http headers and document declaration e.g.:

  owa_util.mime_header('text/xml; charset=UTF-8', false);   owa_util.http_header_close;
  htp.p('<?xml version="1.0" encoding="UTF-8"?>');

would be sufficient however when looking in e.g. firefox at the document details it still says that the encoidng is ISO-8859-1

So the question is: how can I generate the data using the requested encoding?

Is there an 'alter session' directive I can use?

Thanks.....

-- 

jeremy
Received on Thu Mar 17 2005 - 03:58:57 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US