Go to: How can I get the corresponding code of the city name by inserting QQ weather forecasts in my blog?

Source: Internet
Author: User
Http://blog.csdn.net/kenan1/archive/2005/03/03/309173.aspx

I was ready to go out and have fun. As a result, it was raining early in the morning ...... It seems that the rainy season has arrived in Chongqing over the past few days, and it rains every night. It seems that I should pay attention to the weather forecast every day. I thought of the weather forecast function in QQ, which is very convenient. I think it is better than some overseas weather forecasts, so I decided to call QQ's weather forecast.
CallCodeAs follows:

Code
<B> <font
Color = green> today's weather </font> </B>
<Center> <IFRAME width = 157
Height = 240 frameborder = 0 scrolling = No
Src = 'HTTP: // appnews.qq.com/cgi-bin/news_qq_search? City = % Ca % af % BC % D2 % D7 % AF & CL '> </iframe> </center> </TD>

"% D6 % D8 % C7 % EC" indicates the city code.

So how do you know the code of your city? In fact, it is very simple. You just need to search for the city name in Baidu, such as "Chongqing", and then the code in the address bar is

How to encode these Chinese characters into % D6 % D8 % C7 % EC? This cainiao is puzzled. If you forget to give some advice, thank you first.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.