BCJTI / ng2-cookies

Simple library to deal with cookies in Angular2
64 stars 31 forks source link

URI malformed error in getting all Cookies #55

Closed maronaquillo closed 6 years ago

maronaquillo commented 7 years ago

I'm getting this error when I use Cookie.getAll() but it works onCookie.get(). Sample Text: Tōkyō-to

Bigous commented 6 years ago

I'm sorry about the loooooooong delay.

This only can happen if you are trying to retrieve cookies with Cookie that were not stored with Cookie. If you are trying to do that, I suggest you to use UnmanagedCookie. It doesn't try to encode and decode names and values and it will probable work flawlessly to you.