encoding/base64 decode error: illegal base64 data at input byte

3,461 views
Skip to first unread message

Felix Sun

unread,
Feb 8, 2013, 4:23:43 AM2/8/13
to golan...@googlegroups.com
Hi All

I have this program http://play.golang.org/p/e5_pnl4S8Y

Shows that If I removed all newlines in the string, It successfully
decode the base64 string, But If I I don't, It will gives "illegal
base64 data at input byte"

Is that supposed behavior?

Dave Cheney

unread,
Feb 8, 2013, 6:06:41 AM2/8/13
to Felix Sun, golan...@googlegroups.com
I am pretty sure this is fixed at tip, http://tip.play.golang.org/p/e5_pnl4S8Y
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Felix Sun

unread,
Feb 8, 2013, 8:11:26 AM2/8/13
to Dave Cheney, golan...@googlegroups.com
followed your link, It still gives errors.

Russ Cox

unread,
Feb 9, 2013, 11:10:04 AM2/9/13
to Felix Sun, Dave Cheney, golang-nuts
No matter how you get to the playground page, the execution engine is still using the most recent Go release (Go 1.0.3), not tip.

Also this still happens at tip. It does look like a bug. I filed golang.org/issue/4779.

Thanks.
Russ

Reply all
Reply to author
Forward
0 new messages