当前位置:网站首页>Open Chinese path file in C language
Open Chinese path file in C language
2022-06-12 14:54:00 【Diligent brother Cheng】
How to use C Language open Windows Download the Chinese path file ?
Although the principle is not clear , But I did find a way today .
1. Write first C Language program , There is the logic of the file with Chinese path you want to open ,fopen The path you want to open is directly used in the string of the function . At this time, the source file is generally UTF-8 Coded .
2. Then save the source file as ANSI Coded file .
3. Then compile the saved file ( Do not use IDE Reopen the saved source file , Otherwise the code will change back ), And then run exe The file can successfully open the path of the Chinese code .
But if you open a file other than ANSI code , So if you try to write Chinese in it , It will cause the contents of the original file to be garbled , And the Chinese you write will not be garbled .
边栏推荐
- SQL cross database injection
- 安凯微电子冲刺科创板:年营收5亿 小米产业基金是股东
- Prompt that the program cannot access key files / directories when installing PS software. Error code: 41
- C main函数
- [spark][core] what is an external shuffle service?
- ShardingSphere实践(6)——弹性伸缩
- 启明云端分享| 通过Matter协议实例演示开关通过matter协议来做到对灯亮灭的控制
- 【Optional】1. Map and ifpresent 2 Ofnullable and orelse
- 左对齐,右对齐,随机数,goto,比较输出bool
- Appnium (II) installation and basic use of mitmproxy
猜你喜欢
随机推荐
Use Baidu AIP to obtain the text in the specified area of the screen
Module VIII
jenkins相关
Autofac (2)
Thinking: what is asynchrony and thread safety
sql跨库注入
Soft test (VI) Chrome browser installation selenium IDE
[spark][core] interview questions talk about push based shuffle
Scala下载及IDEA安装Scala插件(保姆级教程超详细)
Software package for optimization scientific research field
TC menu split
机器人前行、旋转的service编写
能链智电登陆纳斯达克:贝恩是股东 成中国充电服务第一股
C scanf函数
交换数字,异或求单,操作符相关
SQL cross database injection
Element positioning of selenium
Mysql之索引和视图
【LDA】EM变分推理 粗略版笔记【待完善
C data type



![[wechat applet] 1 Introduction to wechat applet](/img/7c/6e62269438a0dd7e7172cb37af9fb9.jpg)
![[wp][入门]攻防世界-game](/img/07/1ea54d14ba3caca25a68786d5be4a6.png)




