Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cyrillic alphabet in the body of the script - Execute an inline script #7206

Closed
krajster opened this issue Aug 5, 2021 · 4 comments
Closed

Comments

@krajster
Copy link

krajster commented Aug 5, 2021

When using the Cyrillic alphabet in the body of the script, after saving the Cyrillic characters are all replaced with the symbols ???

My Rundeck detail

  • Rundeck version: 3.4.2-20210803
  • install type: war
  • OS Name/version: Windows 2019
  • DB Type/version: mssql

To Reproduce
Steps to reproduce the behavior:

  1. Go to Jobs
  2. Click on New Jobs
  3. Click on Workflow
  4. Scroll down to Add a step
  5. Click on Script - Execute an inline script
  6. In field "Enter the entire script to execute" enter Cyrillic symbols
  7. Save script, save Job
  8. Edit Job, edit Step
  9. See error

Expected behavior
When using the Cyrillic alphabet in the body of the script, after saving the Cyrillic characters are all replaced with the symbols ???

Screenshots
Before save
before_save

After save
after_save

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser firefox
  • Version 90.0.2
@MegaDrive68k
Copy link

Hi @krajster

Did you try adding -Dfile.encoding=UTF-8 on your rundeckd file and restart the instance? Take a look at this.

Regards!

@krajster
Copy link
Author

krajster commented Aug 5, 2021

Hi @MegaDrive68k
my run profile - VM="-Dfile.encoding=UTF-8" "-Dsun.stdout.encoding=UTF-8" "-Dsun.err.encoding=UTF-8"

@krajster
Copy link
Author

krajster commented Aug 5, 2021

If you change the current dataSource.url from MSSQL to "dataSource.url = jdbc: h2: file" Cyrillic characters will be displayed normally.
When "dataSource.url = jdbc:sqlserver://" Cyrillic characters will be displayed "?????".

@krajster
Copy link
Author

krajster commented Aug 6, 2021

Resolved:
changed dataSource.url to jdbc:sqlserver://SERVER;integratedSecurity=true;DatabaseName=RUNDECK;characterEncoding=UTF-8

@krajster krajster closed this as completed Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants