rundeck log shows invalid character at Japanese characters

142 views
Skip to first unread message

矢野崇

unread,
Sep 11, 2022, 11:22:11 AM9/11/22
to rundeck-discuss
Hello
I am using rundeck 4.6.
The server is on Ubuntu 18.04.
The node is on Windows 10 with openssh.
I can submit jobs at the node.
If there is Japanese characters in the job log,
rundeck shows invalid characters.
Is there any way to resolbe it ?
The rundeckd is running with en_US.UTF-8.
rundeckd JVM options includes -Dfile.encoding=UTF-8.
rundeck profile has includes LANG=en_US.UTF-8.
If I connect from rundeckd server to Windows 10 node with ssh,
the ssh session shows expected Japanese characters.

takas...@nifty.com

unread,
Sep 12, 2022, 5:42:23 AM9/12/22
to rundeck...@googlegroups.com
I may resolved the problem:
At the head of each powershell script from rundeck,
I inserted the following lines:
$PSDefaultParameterValues['*:Encoding'] = 'utf8'
$global:OutputEncoding = [System.Text.Encoding]::UTF8
[console]::OutputEncoding = [System.Text.Encoding]::UTF8
$Host.UI.RawUI.WindowTitle = "Windows PowerShell (" + $OutputEncoding.
WebName + ")"
The log shows Japanese characters as expteced.

矢野崇 <takas...@nifty.com>さん:
--
You received this message because you are subscribed to a topic in the
Google Groups "rundeck-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rundeck-discuss/dkD-uyI659Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/7dd4c8b5-b87d-4945-9488-dd0345950783n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages