当前位置:网站首页>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 .
边栏推荐
- 阿里、腾讯、拼多多垂范,产业互联网的新逻辑渐显
- Use Baidu AIP to obtain the text in the specified area of the screen
- 【LDA】LDA主题模型笔记—主要是狄利克雷
- Basic usage of scanner
- Prompt that the program cannot access key files / directories when installing PS software. Error code: 41
- win10_ Home Edition cannot use remote desktop, and can be accessed by remote desktop.
- 野指针理解
- 【Environment】1. Get the configuration in YML through the environment in the configuration class
- 粒子滤波学习记录
- jenkins的RPC测试项目
猜你喜欢

数组相关内容
![[wp][beginner level] attack and defense world game](/img/07/1ea54d14ba3caca25a68786d5be4a6.png)
[wp][beginner level] attack and defense world game

Leader education was forced to be delisted: Softbank CMC suffered heavy losses only one year after listing

函数相关事项

Junit多线程的写法
![[wechat applet] 4 Introduction to wechat developer tools](/img/9d/0d6c5cc675fb70dde98b25649bd8d8.jpg)
[wechat applet] 4 Introduction to wechat developer tools

Can you believe it? It took me only two days to develop a management system

安凯微电子冲刺科创板:年营收5亿 小米产业基金是股东

Jetpack架构组件学习(3)——Activity Results API使用

用游戏来讲序列化与反序列化机制
随机推荐
启明云端分享| 通过Matter协议实例演示开关通过matter协议来做到对灯亮灭的控制
C escape character
Getting started with webdriver
能链智电登陆纳斯达克:贝恩是股东 成中国充电服务第一股
结构体示例
你敢信?开发一个管理系统我只用了两天
JMeter (V) pressure test of Excel file upload interface
Scala下载及IDEA安装Scala插件(保姆级教程超详细)
JD scanning code to obtain cookies
安凯微电子冲刺科创板:年营收5亿 小米产业基金是股东
【Calendar】1. For globalization 2 But only date can be formatted by SDF 3 Month to -1 4 Week from Sunday is the first day
【LDA】基础知识笔记——主要是AE、VAE
Browser fingerprint interpretation
jenkins的RPC测试项目
NETCORE combined with cap event bus to realize distributed transaction - message (2)
Junit测试中常用的断言
[gatewaysessioninactiveevent event] 1 Connect your own client disconnect
Markdown edit
函数相关事项
[wechat applet] 4 Introduction to wechat developer tools