Problem with encoding (Greek characters challenge) #105

Closed
iamedu opened this Issue Jan 28, 2013 · 1 comment

Comments

Projects
None yet
2 participants

iamedu commented Jan 28, 2013

First of all.. what's important.. I'm very excited to see vimgolf, it's a great piece of software and a lot of fun!!

I was trying to solve the Greek character challenge but I noticed that I get strange characters in the output, you can see in the image.

Screenshot from 2013-01-27 23:57:34

I've tried to solve it for a while.. and I'm still think it might be my machine's encoding.

If it's of any help the generated vimgolf files are over here: http://db.tt/Dz1cS7Dp

Thanks for everything and keep up the good work!

Collaborator

urticadioica commented Mar 5, 2013

The hint from @jdelkins about ruby 1.9 helped me find the problem. The reason this bug shows up in ruby 1.9.3 is that it defaults to psych, which parses YAML's \x80 and higher hex escapes in a different way than syck, interepreting each one as a UTF-8 character instead of a byte.

@igrigorik igrigorik closed this in #109 Jun 23, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment