NLS法文字符显示不正确问题描述
我用下面的SQL(结构化查询语言)查询语句从Oracle数据库中检索数据
macdev::/mac/HAHTsite [ ] >more tsql
select * from tmpbo where no_inf_ad = ;
我运行查询语句将输出发送到文件中
sqlplus www/www < tsql > t
在该文件上执行more命令时法文字符出现乱码当我在同一个文件上执行cat时字符显示正常
如何解决这个问题?
配置信息
操作系统 HPUX
版本
硬件系统 PA
系列 D
应用程序 Oracle
解决方法
你可以用下面的脚本打开一个本地hpterm窗口解决这个问题本地hpterm窗口允许你显示Oracle数据库的输出
#!/bin/ksh
# Open a hpterm to use isofrench:
LANG=fr_FRiso
export LANG
hpterm xrm *keyboardLanguage: French fn bitstreamprestigemediumrnormalmiso
由于Oracle输出中没有显示控制字符因此你应当能够显示Oracle数据库的输出
following with all English text
Problem Description
I am retrieving data from an Oracle database with this SQL (Structured
Query Language) query:
macdev::/mac/HAHTsite [ ] >more tsql select * from tmpbo where no_inf_ad = ;
I run the query to send the output to a file:
sqlplus www/www < tsql > t
When I do a more on that file the French characters are garbled When I do a cat on the same file the characters display as they should
How can I resolve this problem?
Configuration Info
Operating System HPUX
Version
Hardware System PA
Series D
Application Oracle
Solution
You can resolve your problem by using the following script to open a localized hpterm window The localized hpterm window allows you to display your output from the Oracle database
#!/bin/ksh
# Open a hpterm to use isofrench:
LANG=fr_FRiso
export LANG
hpterm xrm *keyboardLanguage: French fn bitstreamprestigemediumrnormalmiso
Since there are no display control characters in the Oracle output you should be able to display your output from the Oracle database