---
title: "处理中文字符串的函数"
author: "ningzai"
date: "2008-12-17T01:48:00Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2008-12-17T01:48:00Z"
id: 295696
url: "https://ningzai.iteye.com/blog/295696"
---

<%!
  public String codeToString(String str)
  {//处理中文字符串的函数
   String s=str;
   try{
    byte tempB=s.getBytes("ISO-8859-1");
    s=new String(tempB);
    return s;
   }catch (Exception e)
   {
    return s;
   }
  }
 %>