当前位置:网站首页>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
边栏推荐
- .Net Core 中使用工厂模式
- JSON format processing
- SystemVerilog (XIII) - enumerate data types
- Niuke.com: Candy distribution
- CMU puts forward a new NLP paradigm - reconstructing pre training, and achieving 134 high scores in college entrance examination English
- Use of JSP sessionscope domain
- RPC typical framework
- Spannable and editable, spannablestring and spannablestring
- Spark history server and event log details
- JVM 原理简介
猜你喜欢

Redis6笔记02 配置文件,发布和订阅,新数据类型,Jedis操作

Develop two modes of BS mode verification code with VFP to make your website more secure

CFCA Anxin sign access

Xishan technology rushes to the scientific innovation board: it plans to raise 660million yuan. Guoyijun and his wife have 60% of the voting rights

揭秘GaussDB(for Redis):全面对比Codis

Database Series: MySQL index optimization summary (comprehensive version)

redis的dict的扩容机制(rehash)

记一次有趣的逻辑SRC挖掘

Vulnérabilité à l'injection SQL (contournement)

Specific meanings of node and edge in Flink graph
随机推荐
Detailed explanation of spark specification
wait()、notify()和notifyAll()、sleep()、Condition、await()、signal()
SMS verification before deleting JSP
try-catch-finally
4 life distributions
如何实现移动端富文本编辑器功能
How terrible is it not to use error handling in VFP?
try-catch-finally
Simple use of stream
Leetcode 1249. Remove invalid brackets (awesome, finally made)
Why distributed IDS? What are the distributed ID generation schemes?
An interesting logic SRC mining
Hangzhou / Beijing neitui Ali Dharma academy recruits academic interns in visual generation (talent plan)
Openfeign uses
Solution to the timeout scenario of Flink streaming computing (official live broadcast)
Where do the guests come from
Niuke.com: host scheduling
JSON format processing
Capacity expansion mechanism of Dict Of redis (rehash)
Record the process of submitting code to openharmony once