Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
the only losing move is not to blog

Interestings

Base64.decode64 encodes your string to US-ASCII

This can possible give you really weird errors (incompatible character encodings: UTF-8 and ASCII-8BIT) on your views in Rails.

You can convert the string using "ASCII-encoded"..force_encoding('UTF-8').encode

Read more about why this happens here: http://blog.zachallett.com/base64-decode64-does-bad-things-if-you-are-expecting-utf-8-encoded-strings

Comments
Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *