萤火虫BB
会乱码的原因是你的编码不一致导致的php中的urlencode的编码是和系统编码一致的(比如windows默认gb2312,ubuntu默认utf-8)所以首先需要确定你的系统编码,之后根据得到的系统编码在调用java的decode方法的时候,将这个编码传入(考虑到你的例子中有繁体字,所以,建议你使用utf-8编码),以下是我使用utf-8编码的例子(php环境是ubuntun下)
活性炭1986
没有waaya这个单词,比较类似的英文单词有:walla; wanna.
1、walla
英式读音:['wɑ:lɑ:]
美式读音:['wɑ:lɑ:]
中文谐音 :沃拉
n. 要人,经办业务人;
[例句]Evan Hecht has crossed the continent from Walla Walla in the state of Washington.
埃文•赫克特从华盛顿州的瓦拉瓦拉跨越而来;
2、wanna
英式读音:['wɔnə]
美式读音:[ˈwɑnə]
中文谐音:窝奥呢
v. <美俚>想要,希望;
[例句]I wanna be married to you. Do you wanna be married to me?
我想和你结婚。你想和我结婚吗?
*指尖的淚
解码的字符集不对,指定下字符集转码new String(Base64.encode(str.getBytes("GBK")));字符集编码多换几个试试。打印下应该没问题
sojisubyun
public static String GetImageStr(String imgFilePath) { byte[] data = null; // 读取图片字节数组 try { InputStream in = new FileInputStream(imgFilePath); data = new byte[in.available()]; in.read(data); in.close(); } catch (IOException e) { e.printStackTrace(); } // 对字节数组Base64编码 BASE64Encoder encoder = new BASE64Encoder(); // 返回Base64编码过的字节数组字符串 return encoder.encode(data); }
优质英语培训问答知识库