Comments (9)
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.
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.
Can you please provide a simple example: a text with characters that cause problem, so I can reproduce?
from oradew-vscode.
Comment (NLS_LANG=POLISH_POLAND.EE8MSWIN1250):
// Zażółć gęślą jaźń
from oradew-vscode.
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)
from oradew-vscode.
I've tested it, and it works. but now I have to convert all my scripts to uft-8.
from oradew-vscode.
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.
@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.
Better setting that affects only plsql files:
"[plsql]": {
"files.encoding": "windows1250"
}
from oradew-vscode.
Related Issues (20)
- Run as Script hangs for a few minutes HOT 3
- Windows econding UTF8 problem HOT 42
- Compile error "ERROR ORA-06550: line 3, column 40:" HOT 8
- problems importing packages from the DB HOT 3
- Terminal output problem matcher HOT 26
- Generate: "output" doesn't work
- Extension causes high cpu load HOT 1
- Encoding error when importing the selected object HOT 8
- Displaying umlauts in terminal output
- Encoding problem in SQL-Statements HOT 3
- dbms_metadata.get_ddl does not work when used in UTL_GENERATE_ORADEW HOT 3
- Initialize Workspace not working HOT 8
- Oracle wallet authentication compatibility, userless & passwordless HOT 9
- Error while trying to retrieve text for error ORA-01804 HOT 5
- Drop support for sqlplus, sqlcl Liquibase ci/cd HOT 8
- Support latest version of node HOT 6
- Generating a source from a database HOT 5
- Create source from a non-DEV env
- Problem importing when object has "SQL" in the name HOT 1
- problems connecting to oracle database (proxy authentication) HOT 7
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 oradew-vscode.