Multilanguage problem in UNIX


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Multilanguage problem in UNIX
# 1  
Old 11-04-2010
Question Multilanguage problem in UNIX

I currently use a unix script to generate a pdf file by calling rwrun.sh. THe data is taken from database with nls_lang = utf8. Currently my UNIX script uses GERMAN_GERMANY.WE8ISO8859P1 and I am getting inverted question marks when I have other language text in my report. What kind of nls_lsng set up should I have so that I can get rid of those inverted question marks and print proper text?
# 2  
Old 11-04-2010
Have you tried setting NLS_LANG to GERMAN_GERMANY.WE8ISO8859P1 before you run the database query to select the data out of the database? That should cause the proper characterset conversion to occur. If you still get the inverted question marks, then the data was corrupt in the database already, or the WE8ISO8859P1 characterset doesn't include the characters.
# 3  
Old 11-09-2010
Thanks for the reply !

The NLS_LANG before getting data in UNIX is GERMAN_GERMANY.WE8ISO8859P1. The data is nto corrupted in database. It is a proper one.I could access the data promptly using a oracle report.

Yes the GERMAN_GERMANY.WE8ISO8859P1 does not support UTF format. I even tried GERMAN_GERMANY.UTF8. But it still didnt work.

in windows I have a file uifont.ali where I gave the instructions as

[ pdf: subset ]
"Arial Unicode MS" = "ARIALUNI.TTF"

Is there any uifont.ali file in oracle server in unix platform where I could implement this change?
# 4  
Old 11-10-2010
What o/s was the client the data was inserted from into the database?
What is the code page of that client?
What is the NLS_LANG setting for that client?
Was the data created on that client or transferred to that client from another server?
If so, what is the characterset of the server the data was created on?

Inappropriate NLS_LANG settings can cause data corruption. However, the problem can be masked if you are selecting the data back out of the database from the client with the incorrect NLS_LANG setting. On that client, the data will appear perfectly normal, but only because the same incorrect characterset conversion is taking place coming out of the database that took place when the data was inserted into the database.

What you've said about the WE8ISO8859P1 characterset getting invalid results leads me to believe this is what has happened. If you can answer the questions above and bear with me while we do some troubleshooting, I believe we can figure it out.

It would be helpful if you could describe the process used to generate and insert data into your database as well.
# 5  
Old 11-10-2010
1. Data is coming from the front end done in Java. It has UTF 8 set up

2. Yes the data is correctly transferred to the database. This I conirmed by selecting data from database using PL/SQL developer. So data is not corrupted in the DB

3. More over when I access the same data using oracle reports, they get displayed properly. All the above mentioned actions are done in windows

4. When I try to generate a PDF report from a unix shell script using the multilanguage data, I can correctly get one language and another one becomes inverted question marks. So this problem occurs in UNIX only. I even tried to set upthe NLS_LANG = AMERIACAN_AMERICA.UTF-8/ UTF8. Nothing works.

I believe I have almost answered all ur questions Smilie
# 6  
Old 11-10-2010
Try setting the NLS_LANG on your unix box to same as it is on the windows server. Once the file is created, change your NLS_LANG back to what it was and transfer the file and open it on your windows server and see if it looks correct.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problem with a lp from UNIX

Hi, how we are? I have a problem, I have a PDF in unix and i call a Shellscript, it does : lp -d queue archive.pdf A simply print. I have many printers, so in some printers the PDF is printing with a diferent margin left and right margins, it cuts the really print. I try fix it,... (6 Replies)
Discussion started by: dcastellini
6 Replies

2. OS X (Apple)

UNIX cache problem?

So I worked out a script for Mac OSX from an existing script. This script checks the versionnumber of a plugin and a package. If the plugin version is different from the package it has to update the plugin. The script works fine but the final check fails. Here is my script: #compare version... (6 Replies)
Discussion started by: mattiasvdm
6 Replies

3. SCO

unix installation problem

hi, im tring installaing sco unix 5.05 in my pc but it is showing an "memory error loading kernel fd(64)unix.text loading ram disk image fd(64)rootfs" can anybody tell me how to solve this problem. my system configuration is 3.2ghz processor,1gb ram,d101ggc mother board thank u bln (1 Reply)
Discussion started by: blnprasad
1 Replies

4. UNIX for Dummies Questions & Answers

Unix 10.2 Backup Problem

We have an older HP Unix 10.20 system that we rarely ever use anymore. Most of our jobs on it are from 1994 to 2002. Anything after that is on Windows XP. The Unix system was backed up religiously every day. Because of space constraints some of the jobs were removed from the system after a... (3 Replies)
Discussion started by: fozzybear
3 Replies

5. UNIX for Advanced & Expert Users

i have a problem with unix

Hi, > i have a problem using the crontab command. i have a program which > will show a pop-out in the screen using the say command when the > program is run. but when i put the program into the crontab command, the > program works perfectly but it did not show any pop-out on the screen.... (18 Replies)
Discussion started by: ckng
18 Replies

6. Filesystems, Disks and Memory

Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!!

Hello Moto I hope someone can help We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers.. a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies

7. UNIX for Advanced & Expert Users

Problem booting unix

Hello, We had a system shutdown last night and now the server won't boot because of volume is seriously damaged (this affects all volumes). Any suggestions on how to repair. Any suggestions welcome Thanks (1 Reply)
Discussion started by: bobman
1 Replies

8. SCO

Problem during unix installation

i have a problem with installing unix after booting system by itself floppy , during checking the hardware devices computer hangs , and stops. it checks: %fpu %serial %floppy %console %pci %adapter %tape %cd-rom G hd_config in this place system got stop. remember i passed this step at... (1 Reply)
Discussion started by: uranium
1 Replies

9. UNIX for Dummies Questions & Answers

UNIX problem? Unix programm runs windows 2000 CPU over 100%

Okee problems...!! What is happening: Unix server with some programms, workstations are windows 2000, the workstations work good but when you start a programm on the Unix server the CPU of the workstations go to 100% usage resulting that the system gets very slow. The programm well its running so... (2 Replies)
Discussion started by: zerocool
2 Replies

10. UNIX for Dummies Questions & Answers

Unix login problem

When i am trying to login to my unix machine. It is directly loging me into root ( / ) directory, instead of my home directory. Why this is happening. And generally when this happens (4 Replies)
Discussion started by: ds_sastry
4 Replies
Login or Register to Ask a Question