Usage Scenario: PHP as the server-side receive app interface data, due to MySQL format problem caused by no way to directly save emoticons package
The solution is to convert the expression to Base64 can be seen in the format, due to the length of
No details: MySQLALTERDATABASEmy_databaseDEFAULTCHARACTERSETutf8mb4COLLATEutf8mb4_general_ci; ALTERTABLEmy_tableCONVERTTOCHARACTERSETutf8mb4COLLATEutf8mb4_general_ci;
No details about MySQL alter database my_database default character set utf8mb4
Now the mobile side provides a lot of expressions, such as Baidu Input method in the expression.
A lot of expressions in PHP, after it is not recognized content, when stored in MySQL, it will start from the expression position, the contents of the
After the internet has said that the Unicode expression needs mysql5.5.3, my version is MySQL 5.5.38 so is supported, only need to follow the following configuration
Then you can restart the
[Client]default-character-set =
To find a regular expression, replace a regular emoticon with an emoticon (emoticon)
To find a regular expression, replace a regular emoticon with an emoticon (emoticon)
[Happy] to be replaced by (the Chinese name of the picture is not regulated?)
First, download Androidemoji.ttf fonts
Address 1:github Android Platform
Address 2:androidemoji.ttf.zip
Second, the use
2.1 Copy the font to the Assets/fonts directory
2.2 Code calls
try {
typeface typeface = Typeface.createfromasset
Article 3 of the public account development tutorial-sending of symbolic expressions (I ). I believe that this article has made everyone wait for too long. it does not mean that it takes too much time to write an article. Maybe an external question (you can skip it)
I believe this article has made everyone wait for too long. it takes too much time to write an article instead of being confused and appetizing. Maybe it takes 3-5 minutes for you to finish reading an article and learn how to master
1. Filter the reason for emoji expression In our project development, emoji expression is a troublesome thing, even if we can store it, it doesn't have to be perfect, because it's updated fast: On platforms other than iOS, such as PC or Android. If you need to display emoji, you have to prepare a bunch of emoji images
Off-topic (can skip)
I believe this article has let everyone wait too long, not my trick, hang everyone's appetite, but write an article really need to spend too much time. Perhaps an article, you spend 3-5 minutes to read, school will master, and I will spend 2-3 hours of time to complete, perhaps only attentively wrote the article the person can understand, hope we can mutual understanding!
Someone once said to me, I write things too elementary, are entry-level things. Well, I admit that tun
Digress (skipped)
I believe this article has made everyone wait for too long. It takes too much time to write an article instead of being confused and appetizing. Maybe it takes 3-5 minutes for you to finish reading an article and learn how to master it, but it takes 2-3 hours for me to complete it, maybe only those who have carefully written articles can understand it and hope everyone can understand each other!
Some people once told me that what I write is too basic and is an entry level. Wel
blockbuster ..... The test came, and there was a bug.Convex-^ ConvexThere's a bug? (In many cases, we are not fully guided by the thought, and some scenarios are not predictable, so experience is critical)The above code, in the input, the English can be normal restrictions and processing, but if the input characters with emoji emoji, and the user is using the Paste method is likely to be a bug. Look, put a
Introduction and Article overview
The 11th article gives the unified version of the symbolic expression (emoji expression) code table, and describes how to send emoji expression in the public account development mode, but also at the end of the article, sold a Xiaoguanzi: "Small q robot used in some symbolic expression, in the symbol Expression selection column can not be found at all, And in the previous
tool and all operating systems.NPM Install--save-dev JshintYou are not only restricting the use of CLI tools. In fact, NPM can run any shell script. Let's dig! Using shell scripts in NPMThe following is a script that runs in node and displays a random emoji string (emoji-random). The first line specifies the run environment, which is based on node.#!/usr/bin/env Nodevar
Overview
The first article provides the uniied version of the emoji code table, and introduces how to send emoji in the public account development mode. At the end of the article, I sold a token: "Some symbolic expressions used in the Q robot cannot be found in the selection column of the symbolic emoticons, and the symbolic emoticons code table provided in the previous article (for the uniied Version) no.
10 minutes to understand character set and character encoding
What is a character set
What is character encoding
The relationship between UTF-8 and Unicode
Introduction to UTF-8 Coding
Why do garbled characters occur?
How to identify garbled text that you want to express
The emoji of common problem handling
This article will briefly describe the concept of character set and character encoding. And some c
|
+ ------------------------------------- +
1 row inset (0.01 sec)
Step 2 Recognition
Now we get the decoded binary string E5BE88E5B18C. Then we split it by byte.
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
E5
BE
88
E5
B1
8C
Then apply the Rules summarized in the previous chapter of UTF-8 encoding, it is not difficult to find that the 6 bytes of data comply with the UTF-8 encoding rules. If the entire data stream meets this rule, we can
: Uicontroleventeditingchanged]; -(void) Textfielddidchange: (Uitextfield *) textfield{ if (TextField = = Self.textfieldname) {if ) {= [textfield.text substringtoindex:15 ]; } }}Do you think this is done with the Chinese Association, paste the bug, you have peace of mind ... This method still has a bug, if the input to the left one character, then input emoji? Emoji occupies
Original: WebSockets on IOS with StarscreamAaron DouglasTranslator: Kmyhy
Traditional network technology (i.e. Berkeley sockets) is considered to be reliable and stable. But the Berkeley socket is not very good under certain web technologies, such as proxies and firewalls. WebSocket appeared in 2011 as a new technology to establish two-way communication between client and server. WebSocket is more efficient than multiple HTTP requests and allows for long connections.It's not that easy to us
) |
+ ------------------------------------ +
| Awesome |
+ ------------------------------------ +
1 row in set (0.00 sec)
Troubleshooting of common problems with Emoji
Emoji is a character in the \ u1F601-\ u1F64F segment of Unicode. This apparently exceeded the encoding range \ u0000-\ uFFFF of the commonly used UTF-8 character set. With the popularity and support of IOS,
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.