: This article mainly introduces phpemoji facial expression processing. For more information about PHP tutorials, see. Background
Mobile devices often send emoji in the content they send. unhandled, garbled characters are displayed.
Solution
1. database support: converts Mysql encoding from utf8 to utf8mb4.
2. filter or replace the emoji in the matching content.
/*** Updated emoticon conversion to ios9.2,
This post focuses on some of the things that emoticons send.Reference: Android XMPP-based Instant Messaging 1-basic conversation1. Prepare the resource file.Using the emoji expression, I packed it,: http://files.cnblogs.com/files/pear-lemon/drawable.zip2. Expression layout file Layout_send_emotion.xmlXML version= "1.0" encoding= "Utf-8"?>Relativelayoutxmlns:android= "Http://schemas.android.com/apk/res/android"Android:id= "@+id/rl_send_emotion"Android:
Some methods have been modified. The expression is read directly from the directory. So now you can easily increase or decrease the image of the expression. Just put the picture in the face directory. However, the Chinese image name is not supported at the moment.
/*Modify1. The face directory can be arbitrarily increased or decreased the expression picture (Chinese is not currently supported)2. Default support JPG, JPEG, PNG, emoji image with
GarbledWe recommend that you take a closer look at MySQL character set settings to distinguish between client and server encoding. The simplest and most violent method is to explicitly specify the same encoding in all links.For example, when using python MySQLdb to connect to MySQL, the default charset is latin1. You must specify charset = 'utf8 prime ;, even if the init-connect = 'set NAMES utf8 prime; on the server side, MySQLdb overwrites this option with latin1. Refer to this artic
notification is initiated. Typical ways of use include shopping malls ' auto-shopping applications, surrounding food service discovery applications, and more. Due to the difference between the Internet and the performance of the mobile phone, access to the user's location may be error, affecting theThe actual effect of the fence notification. 5. Picture push notifications (Pictures in Notification): Simple text notifications usually need to capture the user's eyeballs in 100 English characters
on GitHub. New folder created by end of "/". Or specify a file extension, or click Submit file to create a new folder.3. Use git URL short addressJust like we share photo articles on Sina Weibo. You can also share items on GitHub. However, the shared address may exceed the length of the Weibo limit.Then we can shorten the URL and use GitHub's Git.io. Git.io will shorten your project address connection. You can also use the Gitio command to git.io the command line interface to shorten the addres
Through the interface to get the user's nickname, found that some of the user's nickname in the presence of special characters, with PHP filter space Ah, tab or anything does not work, see the content should be the user use the emoji caused, do not know how to filter out this kind of things?
Reply content:
Through the interface to get the user's nickname, found that some of the user's nickname in the presence of special characters, with PHP filt
the project3. Find the Unicode code corresponding to the iconUsing the FontLab Studio 5 tool to open a font file (such as Fontello.ttf), you can see the correspondence between the icon and the Unicode code.4. Use the icon
UILabel *label = [[UILabel alloc] Initwithframe:cgrectmake (10, 60, 300, 50)];
Label.font = [Uifont fontwithname:@"Fontello" size:35];
Label.text = @"\u0000e802 \u0000e801 \u0000e803 \u0000e804 \u0000e805 \u0000e81a";
Label.textcolor = Uicolorfromrgb (0xff
icon you want in the Fontello icon font library and download the generated font file.
2. Follow the steps above to register icon fonts in your project
3. Find the corresponding Unicode code for the icon
Using the FontLab Studio 5 tool to open a font file (such as Fontello.ttf), you can see the correspondence between the icon and the Unicode code.
4. Using icons
Uilabel *label = [[Uilabel alloc] Initwithframe:cgrectmake (10, 60, 300, 50)];
Label.font = [Uifont fontwithname:@ "Fo
recommended with InnoDB engine. If not stated, the InnoDB engine is used when the table is built. The difference between MyISAM and InnoDB2, the default uses the UTF8MB4 character set, the database collation uses UTF8MB4_GENERAL_CI, (because the database definition uses the default, the data table can no longer be defined, but for the sake of insurance, the recommendation is written).
Why does the character set not select UTF8, the collation does not use UTF8_GENERAL_CI?
MySQL with
Tags: insert emoji expression cep passwd mat = RGS __name__ Statement stitchingI long-term sales of ultra-large amount of micro-blog data, and provide specific micro-blog data packaging, Message to [email protected]ObjectiveDue to various reasons such as hardware needs to be about more than 1.7 million 2t of micro-blog image data to be stored in MySQL. The non-relational database that was used to keep the microblog data is MongoDB, because of a variet
variable_name like ' character\_set\_% ' OR variable_na Me like ' collation% '; show full columns from users; //table field Character Set 2, set character sets, support emoji emoji NBSP;UTF8MB4 can be used for emoji, you should set the database, table, table related fields of the character set are UTF8MB4, To achieve normal data insertion.Enter or update
software under Ubuntu (only the nuances of the user interface ).
Next, the release of Xubuntu 8.10, a desktop distribution designed for users and fans of the Xfce desktop: "The Xubuntu team is happy to bring you the latest and greatest software the open source community has to offer. this is their latest result: Xubuntu 8.10, which brings a host of excellent improvements built on the rock solid Xfce 4.4.2 desktop environment. new Features since Xubuntu 8.04: newest Abiword 2.6.4 word processor
get value from Big Data?
Oracle has a good short film about fishing in the ocean. In fact, there are various creatures in the ocean. You may have tuna. You can see squid, seahorse, shells, seaweed, and various marine creatures. When you fish, after you capture it, there will be a variety of things here, but the value of different marine creatures is different. Its commercial value may be the highest commercial value of tuna, and I can sell the most m
First Person shooter game
GPLv2
Mixed
Real class FPS based on the Sauerbraten engine's predecessor, the Cube engine
Alien Arena
2004
2013
First Person shooter game
Gpl
Mixed [3]
Based on ID Tech 2 engine, absorbed part ID Tech 3
Battle of Wesnoth (the Battle for Wesnoth)
2003
2015
Turn-based strategy games
GPLv2
GPLv2
Six-point game, the adjacent lattice can be fought.
B.a.l
After using sublime text2 for a short period of time, what I know is only the tip of the iceberg. In order not to let this little thing flow out of the seahorse, I 'd like to forget it here.
Plugin installation:
Install the package control component (many plug-ins can be directly installed using the package contorl component ):
PressCTRL +'Call up console
Paste the followingCodeGo to the command line at the bottom and press Enter:
Import url
of images.
7. You can't find your way around und without GPS (you can't find the path without GPS)
People who rely on GPS to get around have less activity in the hippocampus, an area of the brain involved in both memory and navigation, according to a series of studies presented in 2010. using spatial memory-which involves using visual cues to develop "cognitive maps" that remember routes-instead of operating on GPS-induced autopilot can help avert memory problems later in life, the studies foun
I changed the Default User Password When operating Ubuntu yesterday. When I log on today, I am prompted that the boot password does not match the password in the key ring. I need to enter the key ring password, after some column passwords I tried yesterday, I finally logged on to Ubuntu. Although I remember the password, it is troublesome to enter the password twice each time I start the system. All the following are my solutions.
To enter Ubuntu only by entering the boot password, you only nee
DOS command Operation 1, win+r into the Run interface 2, use the cmd command to enter the DOS interface 3, find the Hippocampus simulator adb location input [This path].exe connect 127.0.0.1:26944 after performing ifEncounter the hippocampus play simulator can not run the app, please refer to the following methods the first method: 1. Review the process to find the Adb.exe program and end it (generally speaking, ADB is the process of ADT) 2. Run the hippocampus to play simulator, and then you ca
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.