当前位置:网站首页>The solution of PHP sending mobile MAS SMS garbled code
The solution of PHP sending mobile MAS SMS garbled code
2022-07-28 11:00:00 【hongdi】
Use command :show variables like "%char%";
see mysql Character encoding of the database :

2、php Use as follows :
mysql_select_db('mas');
mysql_query("set names latin1;");
mysql_query(mb_convert_encoding("insert into api_mt_db01(mobiles,content)values('".$mobiles."','".$content."');", "GB2312","UTF-8"));
among set names latin1 Equate to
SET character_set_client = latin1;
3、 The character code in the project is UTF-8, The operating environment is windows 2008 , Its character code is GB2312,
because latin1 and utf8 Character set incompatible , Conversion irreversible , So we must put utf8 Turn into gb2312, And then GB2312 Turn into latin1
边栏推荐
- Zero code | easily realize data warehouse modeling and build Bi Kanban
- Characteristics and installation of non relational database mongodb
- Do data analysis, do you still not understand RFM analysis method (model)?
- Select without the order by clause, the order of the returned results is not reliable
- Table data processing software, what else besides excel?
- nodejs:检测并安装npm模块,如果已安装则跳过
- 2021-03-24
- 零代码 | 轻松实现数据仓库建模,搭建BI看板
- Eslint, Eslint中文文档
- 蓝桥杯嵌入式-HAL库-USART_RX
猜你喜欢

这里有一份超实用Excel快捷键合集(常用+八大类汇总)

11_ UE4 advanced_ Change male characters to female characters and modify the animation

Reading these six books makes learning MySQL easier

The future of generating confrontation networks in deepfake

Inventory: exciting data visualization chart

CTF skill tree - file upload

Why is low code (apaas) popular again recently?

Characteristics and installation of non relational database mongodb

剑指 Offer 30. 包含min函数的栈

keil和IAR中lib库文件的生成和使用
随机推荐
Two years of crud, two graduates, two months of preparation for the interview with ALI, and fortunately won the offer grading p6
_ HUGE and __ IMP__ HUGE in “math.h“
JS - 修改数组中对象的键名
float浮动初步理解
使用statement对象执行DDL语句创建表
Judge whether the nixie tube is a common anode or a common cathode
Problems needing attention when VC links static libraries
Start from scratch blazor server (2) -- consolidate databases
适合中小企业的进销存软件,搞定5大难题
GKConstantNoiseSource
02.1.2. logic type bool
Nodejs: mongodb simple fuzzy + paging query instance
Inventory: exciting data visualization chart
CGAL compilation error
nodejs:检测并安装npm模块,如果已安装则跳过
Configuring raspberry pie, process and problems encountered
Characteristics and installation of non relational database mongodb
Nodejs: detect and install the NPM module. If it is already installed, skip
CRM+零代码:轻松实现企业信息化
EC20/EC25 4G模块AT指令开发总结