SQL Language (MOSC)

MOSC Banner

SQLPLUS, NLS and spool to file

in SQL Language (MOSC) 4 commentsAnswered ✓
Hello !

We have an application server Windows 2016, thru our application we can start sqlplus using cmd. We have our own settings for cmd, among one is NLS_LANG, set to  AMERICAN_AMERICA.WE8MSWIN1252

The odd part is that if he starts the sqlplus and just do 
spool t1.txt 
prompt It is Räining today
spool off

Using one swedish special character, the file is created as a UTF8 file format 
If he omits special characters it is saved as ansi format. 

I cannot reproduce that on another server, I always get ansi format
unless I change nls_lang to utf8

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center