Why are some webpages garbled? why are some garbled pages not garbled? A little dizzy

Source: Internet
Author: User
Tags processing text
Why are some webpages garbled? Please refer to these two pages for a bit dizzy: www.qgren.comqigonggongfa15_30.shtml summary garbled. Check this page again: www.qgren.comqigonggongfa15_28.shtml summary is normal. On the website, some pages are normal, and some page summaries are garbled. I'm a little dizzy. Why are there some page garbled characters in the program d? why are there garbled characters? A little dizzy
See these two pages: http://www.qgren.com/qigong/gongfa/15_30.shtml
The Digest is garbled.

Look at this page: http://www.qgren.com/qigong/gongfa/15_28.shtml
The summary is not garbled. it is normal.

On the website, some pages are normal, and some page summaries are garbled. I'm a little dizzy.
The program version is dedecms and gbk. My webpage template is also gbk.

The code for calling the abstract is as follows:
{Dede: field. description runphp = 'yes '}
If (@ me <> '') @ me ='

Summary: '. @ Me .'

';
{/Dede: field. description}

I don't know who can solve my doubts. why?
------ Solution ----------------------
There are no more and no more special characters.
Please check.
------ Solution ----------------------
Space added. delete it.
It is observed that the meta is the same as the garbled characters, so it is retrieved from the meta.
$ T = get_meta_tags ('http: // www.qgren.com/qigong/gongfa/15_30.shtml ');
Echo 'garbled: ', $ s = $ t ['description'], PHP_EOL;
Echo 'restore: ', str_replace ('','', $ s );
Garbled: Aran. You have made an alarm. He is relieved by heart, and smart by truth. What do you mean by giving up and giving up? 5. when an overseas Chinese account fails, the accounts of the United States are not allowed. when a Song Dynasty is used, the number of members of the Wanyuan Overseas Chinese Foundation is 4. the number of chips is K. The number of J gun provinces is 0, and the number of samples is D. xiao Ke Si Shuo H shun Xiao Ke Si Shu
Restoration: Arn. You have made an alarm. He is relieved by heart, and smart by truth. He has no more than enough to fight, no more than to fight, no more than to remember when it is known that a person wins in and does not retreat. I said he scored points for victory. From the beginning. There are two. Who knows. Yes. A. Don't raise money for everyone, but do not raise money for good people. everyone raises money for good people.

------ Solution ----------------------
$ T = get_meta_tags ('http: // www.qgren.com/qigong/gongfa/15_30.shtml ');
$ S = $ t ['description'];

$ N = strpos ($ s, 'Desire ') + 2;
$ T = substr ($ s, $ n );
Echo bin2hex ('done. When '), PHP_EOL;
Echo bin2hex ($ t), PHP_EOL;

$ N = strpos ($ s, 'and') + 2;
$ T = substr ($ s, $ n );
Echo bin2hex. Persons '), PHP_EOL;
Echo bin2hex ($ t), PHP_EOL;

Echo str_replace (''," \ xa1 \ xa1 ", $ s), PHP_EOL;

Echo bin2hex (''); // Check the space at the full corner.
Bea1a1a3b5b1
Bytes
C8a1a1a3c8cb
C820a3c8cbc9c6b3efc1bfc8cbc8cbb6f8b220a3c8cbb3efc1bfc8cbc8cba1
A. You have made an alarm. He is relieved by heart, and smart by truth. He has no more than enough to fight. If it is known that a person wins or fails to return. I said he scored points for victory. From the beginning. There are two. Who knows. Yes. A. Don't raise money for everyone. People are good enough to count people and get sick. How many people raise funds?
A1a1


Obviously, you have replaced all-width spaces with half-width spaces when processing text.
This is the root cause of the problem!

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.