Giter Club home page Giter Club logo

Comments (9)

mickeypearce avatar mickeypearce commented on August 23, 2024

Yes, "package.encoding" changes only encoding of packaged script (deploy/run.sql).

I had a problem converting to win1250 when exporting / compiling (Node.js related - not remembering exacatly what was the problem) and then settled for UTF-8 for files, but allowing encoding setting for deploy package ("package.encoding": "win1250") which can then be executed with Oracle tools: SQLPlus, SQL Developer. This works for me, my DB charset is also WIN1250.

Compiling a Src file that is UTF-8 to different encoded DB with SqlPlus or SqlDeveloper that is a problem, I agree...

Can you please tell me what exactly is the problem in your case or what are you trying to achieve. In other words: why you cannot have files in UTF-8?

Thanks for your feedback.

from oradew-vscode.

otherexception avatar otherexception commented on August 23, 2024

Mainly I have problem with importing source of packages which contains a lot comments with polish characters and after conversion to uft8 they are unreadable (after compile for another users as well).

from oradew-vscode.

mickeypearce avatar mickeypearce commented on August 23, 2024

Can you please provide a simple example: a text with characters that cause problem, so I can reproduce?

from oradew-vscode.

otherexception avatar otherexception commented on August 23, 2024

Comment (NLS_LANG=POLISH_POLAND.EE8MSWIN1250):
// Zażółć gęślą jaźń

from oradew-vscode.

mickeypearce avatar mickeypearce commented on August 23, 2024

I saved your comment to a DB proc, imported current file and the characters came intact. I also have an NLS_CHARACTERSET=EE8MSWIN1250 🤔

Can you check if your imported .sql file is opened with "UTF-8" encoding? (righ-bottom corner of editor)
image

from oradew-vscode.

otherexception avatar otherexception commented on August 23, 2024

I've tested it, and it works. but now I have to convert all my scripts to uft-8.

from oradew-vscode.

mickeypearce avatar mickeypearce commented on August 23, 2024

You are right. I will release a new version today with source.encoding parameter, that lets you specifiy the encoding of source files.

from oradew-vscode.

mickeypearce avatar mickeypearce commented on August 23, 2024

@otherexception , I just released a 0.3.9 version with "source.encoding" setting.

Adding "source.encoding": "win1250" to oradewrc.json should export files in win1250. (default is utf8, similar to package.encoding)

I also use "files.encoding": "windows1250" in settings.json so files are definitely opened in correct encoding, just in case.

from oradew-vscode.

mickeypearce avatar mickeypearce commented on August 23, 2024

Better setting that affects only plsql files:

"[plsql]": {
    "files.encoding": "windows1250"
  }

from oradew-vscode.

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.