1) http://php.weather.sina.com.cn/search.php?city=%B1%B1%BE%A9&dpc=1
2) http://php.weather.sina.com.cn/search.php?city=%C9%CF%BA%A3&dpc=1
There is little difference in the two URLs above:%B1%B1%BE%A9 VS. %C9%CF%BA%A3
, actually, it was B1B1BEA9 & C9CFBAA3
(according to GB2312, B1B1 represents the Chinese word"北
", BEA9, "京
", C9CF,"上
", BAA3, "海
")
I'm trying to write a program to get the GB2312 code from the input Character, for example: input:"北京
", output: B1B1BEA9.
Anybody can help? Thanks a lot !
this will output:
are you looking for this?