当前位置:网站首页>Old ou, a fox friend, has had a headache all day. The VFP format is always wrong when it is converted to JSON format. It is actually caused by disordered code
Old ou, a fox friend, has had a headache all day. The VFP format is always wrong when it is converted to JSON format. It is actually caused by disordered code
2022-06-25 11:44:00 【VFP of Garfield】
Old Ou of the fox Friends Association sent a question , Say conversion JSON Always wrong .
The following figure shows the normal situation 
But taking multiple pieces of data becomes 
If you look carefully, , You'll find the second paragraph data It becomes a string .
So the cat helped him look at it remotely , Open the database , One field is TEXT type , It's full of garbled code , So the cat knows in his heart , His data is from txt The text file is imported into SQLSERVER, Failure to deal with the problems caused by coding .

Look at this mess TXT File is UTF-8, When importing, you selected 936 As a result of , So the cat opened his source txt file . I am a WIN7 The Notepad status bar does not display the encoding type , Lao Ou's computer is win10 There is a display .
So save as ansi Format .
Open it again SQL2008 Import and Export Wizard , Garbled code is normal 
Of course, you can also choose to txt Save as unicode,SQL2008 The import and Export Wizard will recognize as unicode instead of GBK936, The converted field types will also become nvarchar.
More information :www.sn58.cn
边栏推荐
- Spark runs wordcount (case 1)
- 翌圣生物冲刺科创板:25%收入来自新冠产品销售 拟募资11亿
- Manually rollback abnormal data
- SQL注入漏洞(类型篇)
- Deeply understand Flink SQL execution process based on flink1.12
- 9 cases where elements cannot be located
- 時創能源沖刺科創板:擬募資11億 年營收7億淨利反降36%
- TCP如何處理三次握手和四次揮手期間的异常
- Convergence by probability
- Sword finger offer II 091 Painting house: application of state machine DP
猜你喜欢

Spark runs wordcount (case 2)

Solution to the timeout scenario of Flink streaming computing (official live broadcast)

记一次有趣的逻辑SRC挖掘

基于SSH的高校实验室物品管理信息系统的设计与实现 论文文档+项目源码及数据库文件

SystemVerilog (XIII) - enumerate data types

Double buffer transparent encryption and decryption driven course paper + project source code based on minifilter framework

How terrible is it not to use error handling in VFP?

金太阳教育美股上市:市值3.6亿美元 成小盘中概股

An interesting logic SRC mining

翌圣生物冲刺科创板:25%收入来自新冠产品销售 拟募资11亿
随机推荐
Arrays. asList()
Xishan technology rushes to the scientific innovation board: it plans to raise 660million yuan. Guoyijun and his wife have 60% of the voting rights
依概率收敛
wait()、notify()和notifyAll()、sleep()、Condition、await()、signal()
CFCA安心签接入
Shichuang Energy sprint Technology Innovation Board: le chiffre d'affaires annuel prévu de 1,1 milliard de RMB est de 0,7 milliard de RMB, en baisse de 36%
如何实现移动端富文本编辑器功能
Spark history server performance improvement (I) -- Application List
Flink batch key points (personal translation)
JVM 原理简介
基于超算平台气象预警并行计算架构研究
Research on parallel computing architecture of meteorological early warning based on supercomputing platform
Golden sun education listed in the U.S.: a small cap medium cap stock with a market value of USD 360million
2022 mathematical modeling competition time and registration fee
CMU提出NLP新范式—重构预训练,高考英语交出134高分
现在网上炒股开户身份证信息安全吗?
Eureka accesses the console and reports an error: whitelabel error page
Real software developers will use this method to predict the future
Thingspanel releases Internet of things mobile client (multiple pictures)
Multiple clicks of the button result in results