当前位置:网站首页>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
- ShardingSphere实践(6)——弹性伸缩
- ADB control installation simulator
- JS (III) convert ES6 syntax to Es5 syntax
- [wechat applet] 4 Introduction to wechat developer tools
- C 操作符
- TC menu split
- Soft test (VI) Chrome browser installation selenium IDE
- 【Optional】1. Map and ifpresent 2 Ofnullable and orelse
- 启明智显分享| 2.8寸手持中控屏应用方案
猜你喜欢
交换数字,异或求单,操作符相关
[writeup]buu SQL course1[entry level]
你敢信?开发一个管理系统我只用了两天
selenium-webdriver之断言
Getting started with webdriver
NETCORE combined with cap event bus to realize distributed transaction -- Introduction (1)
Data collection
JS (II) syntaxerror: cannot use import statement outside a module
tc菜单分割
启明智显分享| 2.8寸手持中控屏应用方案
随机推荐
C 数据类型
C 字符串
Prompt that the program cannot access key files / directories when installing PS software. Error code: 41
[writeup]buu SQL course1[entry level]
NetCore结合CAP事件总线实现分布式事务——入门(1)
C data type
[spark][core] interview questions talk about push based shuffle
Assertion of selenium webdriver
ADSL
Software package for optimization scientific research field
【SimpleDateFormat】1. Conversion of date type and text type 2 Thread unsafe
C scanf function
Interview (XI) futu written test questions
[wechat applet] 5 Applet structure directory
阿里建议所有 POJO 类属性使用包装类,但这些坑你有注意到吗?
selenium进阶
JMeter (V) pressure test of Excel file upload interface
【Environment】1. Get the configuration in YML through the environment in the configuration class
启明智显分享| 2.8寸手持中控屏应用方案
Alibaba, Tencent et pingduo sont à la recherche d'une nouvelle logique pour l'Internet industriel