Solved

italian charset problem

Posted on 2002-06-20
3
843 Views
Last Modified: 2012-06-21
Background:

We have an Italian Site setup on dynamo 5.1.1 with patch2 . The backend is Oracle 8.1.6 and the character set on the backend is UTF-8.

Issue:

When we are trying to extract the users registered through the italian site out of the database into a flat file on unix box, the italian character set that are
coming is funny i.e. garbage! (this we are able to notice by opening this generated flat file in the browser and viewing it in UTF-8 encoding)

Observation:

Through the dynamo administration (browser) interface , having the browser encoding set to UTF-8 , if we are querying the database, the records being displayed on the screen are correct.

Example:

This is the "italian city" that appears when we try to view the flat file (with extracted records) on the browser in UTF-8: Cantù

When we run the query (from the browser admin screen having the encoding to UTF-8) to pull out the city we get it as Cantù  (This is the correct city name)

We are using UTL_FILE package for extraction work. Some settings in init.ora OR database configuration OR registry OR environment variables need to be set?

Would really appreciate if you could help out in understanding why this is occuring.

Giving 100 points but more for good answers and points for expert for more than one good answer are not ruled out.

--- k_murli_krishna
0
Comment
Question by:k_murli_krishna
3 Comments
 
LVL 2

Expert Comment

by:333
ID: 7095428
should be your text file UTF8 encoded? or some italian encoding?
also, check NLS_LANG environment variable on machine, where extraction runs. NLS_LANG's characterset portion should be set to either UTF8 or italian (depends on what you want). if you are extracting from win*, then NLS_LANG is in registry.
0
 
LVL 3

Accepted Solution

by:
mnicoras earned 100 total points
ID: 7096245
Hi,

UTL_FILE has some problems when it tries to use specific national characters. Almost the same problem has been post it by somebody for chinese characters :-)
Anyhow I suggest the same thing now.
First of all, if you use the UTL_FILE try to set in your procedure which creates the flat file :

alter session set nls_language = 'ITALIAN'

and

alter session set nls_territory = 'ITALY'

this can be done by EXECUTE IMMEDIATE '....'  or using DBMS_UTILITY.EXEC_DDL_STATEMENT ('....') where  '....' = ddl command.

also on UNIX box should have the Italian fonts available to seen them from there.

any questions? I'm waiting...

kind regards,
Marius Nicoras
0
 
LVL 17

Author Comment

by:k_murli_krishna
ID: 7097826
333 and marius nicoras, thanx: other offline suggestion was to set some name value pairs in returned html pages to browser working on it and will get back soon

--- k_murli_krishna
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question