How does PHP convert text in webdings fonts?

Source: Internet
Author: User
Tags vector graphics library
One of my PHP files is encoded as GBK, and I want to convert it to UTF8 encoding format, which has a few words, the font is Webdings, through Iconv did not convert it over. What can I do with PHP to convert it into a UTF8 encoding format?

Reply content:

"Code"

You have a small box containing 256 stamps, each with a number. You took part in the school's "Seal password enthusiasts Interest Group", there is a foreign girl, often play a game with you, such as you asked "Where did you go this summer vacation?" She answered, "78,89,67". Because you are so familiar with your own seal, you suddenly understand that she is "nyc".

"Then Where were you born?" "And you ask.
She hesitated and thought about it, "77,195,188,110,99,104,101,110".

You were stunned. A box of stamps has 256, but we usually only use the first 128. You know 77 is M, but what is 195? You can't think for a moment, you have to be ashamed to take out the box of the seal you carry with you, take out 195 and 188th to press on the paper:

"ã¼".

So the little girl was talking about "mã¼nchen". But what does that mean? Ã and ¼ platform? You look at the little girl in doubt, and the little girl looks at you in disbelief. Saw her also turned to take out a box to open--you immediately silly eyes--inside the dense and incredibly lined with thousands of small seal! And there are a lot of layers! The little girl skillfully turned to a certain layer, Qiao sang with nails to pick out a small seal, printed on the paper the next symbol:

"ü"

Then pass the seal to you. You take a look, the boy, above incredibly engraved "c3 bc", another line of small "195 188". So...... For her, 195 188 would represent the seal of "ü". But the impression of your box is also "ü" ah, so you put the No. 252 seal in the box to show her, it is a "ü". Just as you look blankly at the time to cry out, the interest group of the counselor uncle came, affectionately said: "Children, do not be sad, to continue to believe in love", and then from the shelves on the wall to take a book printed on the cover of "ICONV" Big book, skillfully turned to "iso8859" this chapter, pointing to the " 00fc ü:252"The number in the back of the entry says," Look! iso8859 U is number No. 252! "And then he turned to the"utf8"chapter, pointing to the"00FC ü:c3 BC"said:" and UTF8 U is the hexadecimal c3,bc, that is, the decimal 195,188! 」。

The uncle close the Big Book, Turn your seal box turn over, point to you to see a line printed on the back of the small print: "encoded in iso8859", and the foreign girl's box on the back of the printed "encoded in utf8". "I can only help you here, lad," said the uncle, looking at your indefinitely, laughing.

Although you do not understand why to have such a book, why not each box is loaded with the same thing, but from then on, if you meet the little girl say do not know the number, you will go to look at the book "ICONV", from then on two small guess happy life.

—————— an article ——————

"Font"

As a collector of stamp collectors, you have saved a lot of boxes in your life, with a number of small holes in each box, with a seal in each hole. There is a box that says "arial", take out the seal, which is numbered 65, printed on the paper:



Many of the other boxes of the 65th seal, the pattern looks very similar, such as the "brush script" box inside the number 65th:



Until one day you meet a box that says "webdings", with a 65 stamp on it, printed on paper:


...... So you think of the little girl who played with you when you were a child, 78,89,67 three stamps with trembling hands, press on the paper:



————————

After reading the above two Xiaoxiaoshui, consider:

    1. What is the relationship between the encoding and the font?
    2. What could be the "00fc" in "00fcü:252" and "00fcü:c3 bc"?
    3. What is iconv for?

————————

Study Questions Answer:
    1. A font describes the form of a character, and the encoding is the convention that arises as to which character a number should represent. Fonts are arranged in some sort of code, but there is no definite connection between the code and a specific font, like 78 can be the letter N, but it can also be an eye.
    2. Gather all the possible symbols of the world together into a table, giving each character a unique number, which is called Unicode. And those numbers are called (Unicode) code point. 00FC is the code point in the Unicode encoding program.
    3. The code point of a particular character in Unicode can be found by iconv to the corresponding UTF8 or iso8859 code point, so the code point of a character in iso8859 can be found by iconv The corresponding UTF8 code point. In other words, ICONV can convert the encoding, but the specific code with what font to display, not related to iconv things.
Thank you for your invitation. Are big God Ah, rookie passing Tao Wu's answer is very vivid, coding and font should distinguish. Why is there such a question, is the conversion after the display is not normal? Ask AH now open ppt Many things are automatically turned into webding font, can not be recalled, how to do
Thank you for entering Pinyin ' da ' and choosing "big"
System entry is based on the current encoded 0x34 0x35
Font is a graphics library, or vector graphics library, according to the code 0x34 0x35 to show "big"
Different fonts also encode the image may not be the same picture.
—————— but I have a problem here myself:
UTF8 and GBK can be played "big", Encoding and font corresponding? How does it correspond? Or is there an intermediate layer to map?
(I've seen Libiconv,freetype's code a long time ago, but I can't remember it now.) About character encoding: Getting Started with character encoding
  • 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.