Solved

italian charset problem

Posted on 2002-06-20
3
849 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

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…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

623 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