Git Product home page Git Product logo

Comments (10)

tschf avatar tschf commented on June 3, 2024

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.

vincentmorneau avatar vincentmorneau commented on June 3, 2024

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.

image

from atom-build-oracle.

tschf avatar tschf commented on June 3, 2024

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.

vincentmorneau avatar vincentmorneau commented on June 3, 2024

Thanks Trent. Now it works in SQL*Plus but still not in SQLcl.

from atom-build-oracle.

tschf avatar tschf commented on June 3, 2024

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.

tschf avatar tschf commented on June 3, 2024

I pinged the team on Twitter, as I'm not quite sure how to resolve this.

screenshot from 2016-07-30 07-31-49

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.

vincentmorneau avatar vincentmorneau commented on June 3, 2024

Do you think this is doable within atom-build-oracle?

from atom-build-oracle.

tschf avatar tschf commented on June 3, 2024

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.

tschf avatar tschf commented on June 3, 2024

@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.

vincentmorneau avatar vincentmorneau commented on June 3, 2024

Works perfectly. This tool is great! Thanks Trent.

from atom-build-oracle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.