---
title: "google app engine 中文问题"
author: "jimichan"
date: "2008-08-02T18:12:25Z"
tags: ["GAE", "Google", "框架"]
categories: ["编程语言"]
slug: "google-app-engine"
draft: false
lastmod: "2008-08-02T18:12:25Z"
id: 223416
url: "https://jimichan.iteye.com/blog/223416"
---

在GAE提供的框架webapp中

 

通过 self.request.get('key')  取得url参数值的时候，它返回的是Unicode对象

所以要使用 self.request.get('key') .encode('utf-8')才能使用