当前位置:网站首页>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
边栏推荐
- Inventory: 144 free learning websites, the most complete collection of resources in the whole network
- Solving the optimal solution of particle swarm optimization
- Aike AI frontier promotion (7.28)
- 盘点:6本书教会你职场晋升必备技能
- Relevant knowledge points of hash table
- FHWY工作日进度表
- GKNoiseSource
- Learn how to do e-commerce data analysis (with operation analysis index framework)
- BC35 NB模块AT指令开发总结
- The future of generating confrontation networks in deepfake
猜你喜欢

ctf技能树----文件上传

盘点:令人心动的数据可视化图表

GKNoiseMap

ICML 2022 | graph represents the structure aware transformer model of learning

蓝桥杯嵌入式-HAL库-USART_TX

21. Merge two ordered linked lists

Ten questions about low code: tell everything about low code!

3. MapReduce explanation and source code analysis

GKCylindersNoiseSource

低代码十问:一文讲透关于低代码的一切!
随机推荐
Judge whether the nixie tube is a common anode or a common cathode
蓝桥杯嵌入式-HAL库-SYSTICK
一文学会如何做电商数据分析(附运营分析指标框架)
Start from scratch blazor server (2) -- consolidate databases
GKVoronoiNoiseSource
Configuring raspberry pie, process and problems encountered
用 ZEGO Avatar 做一个虚拟人|虚拟主播直播解决方案
GKSphereObstacle
PHP发送移动MAS短信乱码的解决方法
Nodejs: set up the express service, set up the session and realize the exit operation
CTF skill tree - file upload
构建快捷开发IDE:VisualSVN+Sublime+Visual Studio 2013+QuickEasyFTPServer
02.1.2. logic type bool
keil和IAR中lib库文件的生成和使用
MySQL Architecture Principle
Inventory: 144 free learning websites, the most complete collection of resources in the whole network
栈和队列
GKObstacle
Picture slide effect
c语言链表的使用