Ruby character encoding issue

Posted by Roland Soós on Stack Overflow See other posts from Stack Overflow or by Roland Soós
Published on 2010-06-05T14:29:28Z Indexed on 2010/06/05 14:32 UTC
Read the original article Hit count: 228

Filed under:

Hi, I write a little ruby script, which sends me an email when a new commit added to our svn.

I get the log with this code:

log = `/usr/bin/svnlook log #{ARGV[0]}`

When I run my script from bash I get good encoded character in the email, but when I try it and create a new commit I get wrong hungarian characters.

I commited this:
tes oéá

I get this in the email:
Log: tes ?\197?\145?\195?\169?\195?\161

How can I solve this issue?

© Stack Overflow or respective owner

Related posts about ruby