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

Cannot use UTF8 in rundeck #222

Closed
ujfjhz opened this issue Nov 6, 2012 · 13 comments
Closed

Cannot use UTF8 in rundeck #222

ujfjhz opened this issue Nov 6, 2012 · 13 comments
Labels
Milestone

Comments

@ujfjhz
Copy link

ujfjhz commented Nov 6, 2012

There are some UTF8 or GBK words in my scripts, when I execute the job which contain the scripts , the output cannot give the correct words.

@gschueler
Copy link
Member

Hi Ujfjhz, do you mean scripts embedded in your job, or do they come from an external file?

Do you mind posting a snippet or sample as a gist or to pastebin?

@ujfjhz
Copy link
Author

ujfjhz commented Nov 8, 2012

Yeah, no matter which workflow step(command,script,script file) I embedded in my Job, I cannot echo Chinese Words correctly, the Chinese Words are often shown as "?????" or others strange.

For example:
1)workflow step is Command:
echo "你好"
2)workflow step is Script:
#!/bin/sh
echo "你好"
3)workflow step is Script File,which has the same content in example 2
4)workflow step is Command:
sh /tmp/test.sh
(In these case , /tmp/test.sh has the same content in example 2, but it's on the target host.)

All the cases above,I cannot use Chinese correctly.
And the locale of my RunDeck Server is LANG=zh_CN.gbk,LC_ALL=zh_CN.gbk. No matter which locale I used on the target host, Chinese words are not supported.
There is only one situation I can use Chinese,that is when the job's "Dispatch to Nodes" is unselected.

And another question, when the Rundeck Server dispatch scripts to target nodes , what enviroment configuration file will be read,~/.bash_profile, ~/.bashrc or others?

Thank you very much.

@gschueler
Copy link
Member

FormattedOutputStream and LogOutputStream do not correctly handle multibyte characters

@ahonor
Copy link
Contributor

ahonor commented May 15, 2013

We are addressing this issue when logging system is revamped.

@brightye
Copy link

i have fixd this bug ,anybody need the bugfix can email me

@gschueler
Copy link
Member

Hi, can you post it as a gist if you are unable to do a pull request? Thanks

Greg

On Nov 19, 2013, at 7:20 PM, brightye notifications@github.com wrote:

i have fix this bug


Reply to this email directly or view it on GitHub.

@ujfjhz
Copy link
Author

ujfjhz commented Nov 22, 2013

Great!Thank you very much!

@brightye
Copy link

i do prefer paste the code here,but the editor does not support code ,some spcecial chars omitted.

@gschueler
Copy link
Member

hi @brightye i think this is what you were trying to paste? https://gist.github.com/gschueler/7902292

@brightye
Copy link

hi @gschueler it's exactly what i paste ,but the code is corrupt since some special html reserved chars like &gt &lt ommited by github editor.

@gschueler
Copy link
Member

if there are any other changes you had, please post them in a gist from https://gist.github.com thanks

@brightye
Copy link

@gschueler ,take a look at this gist: https://gist.github.com/brightye/11204119

@gentunian
Copy link

Hi all, are there any news on this issue?

@gschueler gschueler modified the milestones: 2.x, 2.4.0 Dec 1, 2014
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

5 participants