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

Log file uses system default file encoding, should force UTF-8 #1619

Closed
alexey-pankratyev opened this issue Jan 7, 2016 · 5 comments
Closed
Labels
Milestone

Comments

@alexey-pankratyev
Copy link

I have a problem with the encoding. When you execute a command through a web interface (commands) or via the dispatch server
Example: (dispatch -p explotation -F 'name: tamer' -f -- sudo echo 'Тестируем')
and introduce the characters in Russian, I get a response consisting of a question mark
Example: (?????????).
With the encoding server (centos 6) there are no problems -
[root@tamer ~]# locale -a | grep ru
ru_RU
ru_RU.cp1251
ru_RU.iso88595
ru_RU.koi8r
ru_RU.utf8
russian
ru_UA
ru_UA.koi8u
ru_UA.utf8

OS: centos6 (the source and receiver)
Browser: chrome , firefox mozilla, chromium version -

46.0.2490.71 (64-bit)

I would be very grateful for the help!

err
err2

4922.zip
4923.zip

@alexey-pankratyev alexey-pankratyev changed the title Problem with russian the encoding Problem with the russian encoding Jan 7, 2016
@alexey-pankratyev alexey-pankratyev changed the title Problem with the russian encoding Problem with the Russian encoded Jan 7, 2016
@gschueler
Copy link
Member

the output file is ASCII, so i think your system default charset is set to ASCII. Make sure the locale/charset is set to use UTF-8, prior to starting Rundeck. You can also try adding -Dfile.encoding=UTF-8 to your /etc/rundeck/profile in the RDECK_JVM variable.

I will mark this as a bug, I think the log file writer may be using the default encoding, but it should force it to use UTF-8

@gschueler gschueler added the bug label Jan 7, 2016
@gschueler gschueler added this to the 2.6.3 milestone Jan 7, 2016
@alexey-pankratyev
Copy link
Author

Found the solution myself ! The problem was that I decided to make the upstart script, but not out run rundeck user, run as root, root is probably not the system environment ! But still should not be allowed to run as a non rundeck!

@alexey-pankratyev
Copy link
Author

Close the error ! And I apologize for paid for nothing the time on me !

@gschueler
Copy link
Member

I am going to re-open this: it should force the correct file encoding for the log files!!

@gschueler gschueler reopened this Jan 8, 2016
@gschueler gschueler changed the title Problem with the Russian encoded Log file uses system default file encoding, should force UTF-8 Jan 8, 2016
@alexey-pankratyev
Copy link
Author

That's right ! Good attitude to work !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants