Unicode Cookie值 [英] Unicode Cookie Value

查看:132
本文介绍了Unicode Cookie值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将开始使用Unicode值(日语字符)
有没有与Unicode Cookie值有什么问题?在IE 7 IE 8 Firefox,Safari,Chrome?

I am about to start to make a cookie with Unicode value (Japanese characters) is there any problem with Unicode Cookie value? in IE 7 IE 8 Firefox, Safari, Chrome?

谢谢

推荐答案

从技术上讲,cookie值的内容是不透明的,可以是服务器想要的任何东西,甚至是二进制数据,只要生成的HTTP头遵循HTTP规范的规则。按照惯例,大多数服务器编码非ASCII数据,通常使用URL编码(非ASCII字节表示为%XX,其中XX是字节的十六进制值)。

Technically speaking, the content of the cookie value is opaque and can be anything the server wants, even binary data, as long as the resulting HTTP headers follow the rules of the HTTP specifications. By convention, most servers encode non-ASCII data, typically with URL-encoding (a non-ASCII byte is represented as "%XX", where XX is the hex value of the byte).

这篇关于Unicode Cookie值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆