I'm using Base64 to encode a preferences cookie. The problem is with the o-slash character () or &oslash. When I encode and then decode it with PHP I get: \xc3\xb8 I think this has to do with ANSI or UTF-8. Is there a good alternative to Base64? I'm not too much worried about size. Yes, I know the difference between hash, encode, and encrypt. I also tried Hexadecimal to no avail. Base32, while it probably wouldn't work, would be too slow. I hope that there is a workaround for this.