⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 encodingchange.java

📁 基于jsp的固定资产管理系统,自己做的
💻 JAVA
字号:
package DAO;

public class EncodingChange {

    public   static   String   getWriteStr(String   str)   {   
        try   {   
                String   temp_p   =   str;   
                byte[]   temp_t   =   temp_p.getBytes("GBK");   
                String   unicode   =   new   String(temp_t,"ISO8859-1");   
                return   unicode;   
        }   
        catch(Exception   e)   {   
                return   "null";   
        }   
}   

public   static   String   getReadStr(String   str)   {   
        try   {   
                String   temp_p   =   str;   
                byte[]   temp_t   =   temp_p.getBytes("ISO8859-1");   
                String   unicode   =   new   String(temp_t,"GBK");   
                return   unicode;   
        }   
        catch(Exception   e)   {   
                return   "null";   
        }   
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -