惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
宝玉的分享
宝玉的分享
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
博客园 - 【当耐特】
小众软件
小众软件
博客园 - Franky
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
雷峰网
雷峰网
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
Last Week in AI
Last Week in AI
博客园_首页
月光博客
月光博客
IT之家
IT之家
阮一峰的网络日志
阮一峰的网络日志
Webroot Blog
Webroot Blog
Stack Overflow Blog
Stack Overflow Blog
腾讯CDC
云风的 BLOG
云风的 BLOG
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
Recent Commits to openclaw:main
Recent Commits to openclaw:main
D
Docker
The Last Watchdog
The Last Watchdog
有赞技术团队
有赞技术团队
Hacker News - Newest:
Hacker News - Newest: "LLM"
D
DataBreaches.Net
S
Security @ Cisco Blogs
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
TaoSecurity Blog
TaoSecurity Blog
S
Security Affairs
Y
Y Combinator Blog
O
OpenAI News
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
K
Kaspersky official blog
Cloudbric
Cloudbric

博客园 - jinchun

Flex XML查找节点 - jinchun - 博客园 常用建站参考网站大本营 ICON图标下载地址汇总 xml 个性主页服务 javascript 拖动 ,并得到变化位置 宝玉作品集一 20种让脸美白的简单方法 让孩子超过自己! 正则表达式语法 在 ASP.NET 中执行 URL 重写 CSS圆角边框 纯CSS制作 CSS学习网址 韩国网页配色表 网页配色表 http://ajax.cnrui.cn/article/1/5/2006/20061116848.shtml AJAX / JAVASCRIPT 网址收藏 如何实现家财500万 网页设计常用网址
乱码解决之道
jinchun · 2007-09-14 · via 博客园 - jinchun

javascript提交中文数据乱码
  escape(string)

cookie出现乱码

System.Web.HttpContext.Current.Server.UrlDecode(cookie.Value);
HttpCookie cookie 
= new System.Web.HttpCookie(varName, context.Server.UrlEncode(varValue.ToString()));

url出现乱码

System.Web.HttpContext.Current.Server.UrlDecode(val);
System.Web.HttpContext.Current.Server.UrlEncode(val);

创建文本文件

        System.IO.StreamWriter sw = System.IO.File.CreateText(factFile);
        sw.Close();
        sw 
= new System.IO.StreamWriter(factFile, false, System.Text.Encoding.GetEncoding("GB2312"));
        sw.Write(content);
        sw.Close();