Comments (10)
Do you get the same if you compile the file directly in SqlPlus/SQLcl, from command prompt?
Do you have NLS_LANG environment var set?
This post suggests you can query v$session_connect_info
to find out what is being used.
Haven't tested yet, just a couple of thoughts in the meantime.
from atom-build-oracle.
It works well when compiling directly from SQLcl (command prompt).
I could not find anything useful with v$session_connect_info
, but I ran the following in both Atom (SQLcl) and Command Prompt (SQLcl):
select * from v$nls_parameters
where parameter = 'NLS_CHARACTERSET'
;
and got the same result:
PARAMETER VALUE
---------------------------------------------------------------- ----------------------------------------------------------------
NLS_CHARACTERSET AL32UTF8
One character that fails is é
, you can try with:
create or replace package nls_test
is
dummy number; -- éééééé
end nls_test;
/
Furthermore, it works from Atom when using Windows 1252
instead of "UTF-8". Weird.
from atom-build-oracle.
When querying that view v$session_connect_info
, I can see that SQL*Plus sets the client charset to US7ASCII
, whereas SQLcl and SQL Dev has it as Unknown
. I had a look at the statements window in SQL Dev to see if anything is set as far as encoding is concerned, but there doesn't appear to be.
On the command line, if I do: export NLS_LANG=.AL32UTF8
before connecting to SQL*Plus, the compilation succeeds (as in, accented character persists). Proposed solution is a new configuration item for NLS_LANG, with a default value of AL32UTF8
. Set that variable only if there isn't a current environment variable for that.
from atom-build-oracle.
Thanks Trent. Now it works in SQL*Plus but still not in SQLcl.
from atom-build-oracle.
Oh yes, I tested SQLcl in my system and it worked. Just tested in Windows and see the issue still there.
from atom-build-oracle.
I pinged the team on Twitter, as I'm not quite sure how to resolve this.
Also found this thread https://community.oracle.com/thread/3923443?start=0&tstart=0, which suggests it should just work without setting anything.
from atom-build-oracle.
Do you think this is doable within atom-build-oracle
?
from atom-build-oracle.
Yeah, I think it should be. Need to get in there and give it a better test, and think of the best way to add it in (through a config or just do it always by default). Will try get onto this next week (if not before).
from atom-build-oracle.
@vincentmorneau Did you want to give that a test? It seemed to be working, but thought better get a second test before closing.
from atom-build-oracle.
Works perfectly. This tool is great! Thanks Trent.
from atom-build-oracle.
Related Issues (20)
- Running files on relative paths HOT 2
- Missing Settings button HOT 3
- TypeError when only specifying connectString
- Changed text, compiling script -> running script in build output
- Add error matching for SP2-
- SP2-0042: unknown command, when blank lines HOT 1
- Support for multiple connection strings HOT 3
- Compilation error with view should result in failed build
- Investigate chained builds HOT 2
- Compiling views errors HOT 2
- Help Setup SQLPLUS Oracle XE HOT 4
- Uncaught TypeError: Cannot read property 'path' of null HOT 5
- Creating and dropping package in same script with SQLcl leads to SP2-0564 error HOT 1
- Idea: Reset to the default target postBuild
- Idea: Exit on error
- Error installing dependencies
- Idea: set define off
- Getting "No configuration to build this project exist" error HOT 10
- Cannot compile .sql files using build-oracle HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atom-build-oracle.