Topic: https://brettterpstra.com/2012/09/22/planter-tree-planting-for-your-filesystem/
hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!

Erez Zukerman 13y, 86d ago

Hey Brett,

Long time no talk! :) This tool comes at the perfect time for me, but I'm having some trouble with it. I created a UTF-8 input file, and when piping it into the script, I get:

Creating C:/Users/ezuk/test/ג^cג-ג"?ג^cג-ג"?Files
planter.rb:93:in `exists?': "&#092x90" to UTF-8 in conversion from Windows-1255 to UTF-8 (Encoding::UndefinedConversionError)

The UTF-8 file contains only regular English alphanumeric chars (i.e, no accents, no Hebrew etc.).

Any idea what might be wrong?

Thanks again for this!

remark link
hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!

Erez Zukerman 13y, 86d ago

Okay, solved it! Saved input as ANSI. (For some reason I assumed it should be UTF-8.)

remark link parent
hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!

Brett 13y, 86d ago

That bug usually pops up with ruby 1.9+, do you have that installed?

remark link parent
hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!

Erez Zukerman 13y, 86d ago

Yup, 1.9.3. I use pik though, so can easily install older versions as needed. That said, just feeding Planter with ANSI is a better solution for me (I need it very rarely).

hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!