亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 5484 | 回復: 11
打印 上一主題 下一主題

大家來看看這個采用的什么編碼方式 [復制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2010-07-12 10:05 |只看該作者 |倒序瀏覽
%25u600E%25u4E48%25u6355%25u7684%25uFF1F
我想將這些轉(zhuǎn)化為UTF8,可是不知道這是什么編碼方式,往各位大俠指點下

論壇徽章:
0
2 [報告]
發(fā)表于 2010-07-12 10:50 |只看該作者
%25  把%輸出轉(zhuǎn)義的話  25看成16進制的話  翻譯成字符串 %u600E%u4E48%u6355%u7684%uFF1F   


把%u看成utf16編碼的分隔符 可以翻譯成中文:怎么捕的?

論壇徽章:
0
3 [報告]
發(fā)表于 2010-07-12 11:02 |只看該作者
多謝!解析的很正確

論壇徽章:
0
4 [報告]
發(fā)表于 2010-07-12 11:29 |只看該作者
如果要把這個轉(zhuǎn)成UTF8,有現(xiàn)成的函數(shù)沒?

論壇徽章:
0
5 [報告]
發(fā)表于 2010-07-12 11:44 |只看該作者
回復 4# 2004123201

百度,然后ctrl c  and  ctrl v

論壇徽章:
0
6 [報告]
發(fā)表于 2010-07-12 11:53 |只看該作者
編碼本身不保證是UTF-8的,有可能是UNICODE其他字節(jié)長度或者GBK或者其他本地編碼,可以用libcurl先解碼,如果需要本地編碼轉(zhuǎn)UTF-8用iconv庫函數(shù)。

NAME

curl_easy_unescape - URL decodes the given string

SYNOPSIS

#include <curl/curl.h>

char *curl_easy_unescape( CURL * curl , char * url , int inlength , int * outlength );


DESCRIPTION

This function converts the given URL encoded input string to a "plain string" and returns that in an allocated memory area. All input characters that are URL encoded (%XX where XX is a two-digit hexadecimal number) are converted to their binary versions.

If the length argument is set to 0 (zero), curl_easy_unescape(3) will use strlen() on the input url string to find out the size.

If outlength is non-NULL, the function will write the length of the returned string in the integer it points to. This allows an escaped string containing %00 to still get used properly after unescaping.

You must curl_free(3) the returned string when you're done with it.

AVAILABILITY

Added in 7.15.4 and replaces the old curl_unescape(3) function.

RETURN VALUE

A pointer to a zero terminated string or NULL if it failed.

論壇徽章:
0
7 [報告]
發(fā)表于 2010-07-12 16:06 |只看該作者
%25  把%輸出轉(zhuǎn)義的話  25看成16進制的話  翻譯成字符串 %u600E%u4E48%u6355%u7684%uFF1F   


把%u看成 ...
llslls_007 發(fā)表于 2010-07-12 10:50


強悍!

論壇徽章:
0
8 [報告]
發(fā)表于 2010-07-12 21:14 |只看該作者
%25  把%輸出轉(zhuǎn)義的話  25看成16進制的話  翻譯成字符串 %u600E%u4E48%u6355%u7684%uFF1F   


把%u看成 ...
llslls_007 發(fā)表于 2010-07-12 10:50



    我試了這個方法,把分割后的編碼用iconv從utf16轉(zhuǎn)到utf8。全是亂碼,這是怎么回事呢?你是怎么解碼的?能說下么

論壇徽章:
0
9 [報告]
發(fā)表于 2010-07-13 09:55 |只看該作者
回復 1# 2004123201


    URL編碼!

論壇徽章:
0
10 [報告]
發(fā)表于 2010-07-13 10:18 |只看該作者
回復 9# daniel_kohler


    先用URL解碼 再用UTF16轉(zhuǎn)utf8 還是不行
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP