drone
New member
- Joined
- Oct 29, 2022
- Messages
- 1
- Programming Experience
- Beginner
Hi,
I were trying to get data from the url https://hanziyuan.net/#字 . This in percent encoding is
.
No matter what I do, the data that loads is from the default page
https://hanziyuan.net/#车
The code I used is given below. It seems the encoded part is not getting passed on to the server
by the C# client.
The data that loads is from the default page: Chinese Etymology 字源
https://hanziyuan.net/#车
While **the expected data on that code **is from:
https://hanziyuan.net/#字
hanziyuan.net
I have tried with the string "https://hanziyuan.net/#字" as well. Nothing seems to work!
I were trying to get data from the url https://hanziyuan.net/#字 . This in percent encoding is
https://hanziyuan.net/#%E5%AD%97
.
No matter what I do, the data that loads is from the default page
https://hanziyuan.net/#%E8%BD%A6
https://hanziyuan.net/#车
The code I used is given below. It seems the encoded part is not getting passed on to the server
by the C# client.
C#:
// Online C# Editor for free
// Write, Edit and Run your C# code using C# Online Compiler
using System;
public class HelloWorld
{
public static void Main(string[] args)
{
System.Net.WebClient wc = new System.Net.WebClient();
byte[] raw = wc.DownloadData(new System.Uri("Chinese Etymology 字源"));
string webData = System.Text.Encoding.UTF8.GetString(raw);
Console.WriteLine (webData);
}
}
The data that loads is from the default page: Chinese Etymology 字源
https://hanziyuan.net/#车
While **the expected data on that code **is from:
https://hanziyuan.net/#字
Chinese Etymology 字源
Chinese Etymology 字源, Chinese character history and ancient Chinaese character (Orachle characters, Bronze characters, Seal characters, Shuowen Jiezi, Liushutong) analysis and research 汉字历史和古汉字(甲骨文, 金文, 篆字, 说文解字, 六书通)研究与分析. Search 100K+ ancient Chinese characters and etymology. 查询10万+古汉字和字源.

I have tried with the string "https://hanziyuan.net/#字" as well. Nothing seems to work!
Last edited by a moderator: