Home

Add a comment

 

Avatar: Barney

base64 – URI-safe?

Salut Perioxy,
I'm writing a single-page application that I want to be RESTful (everything necessary to build the model stored in URI) while holding multiple variables in query params. Some of these hold keys in indefinite lists, and I'd like to persist as many of these as possible while keeping the state bookmarkable without using a server-side service to generate a link to a JSON-encoded state – this becomes necessary when the URI reaches over 2000 characters.
Do you think it's safe to use base64 to encode and decode URI query parameters? So far everything seems to be working well but there may be edge cases I'm not aware of…
Thanks for a fantastically efficient & functionally complete plugin!

base64 – URI-safe?


Title
Body
HTML : b, strong, i, em, blockquote, br, p, pre, a href="", ul, ol, li, sub, sup
OpenID Login
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).

Home